Class: CamelString
- Inherits:
-
String
- Object
- String
- CamelString
- Defined in:
- lib/attribute_struct/monkey_camels.rb
Overview
Specialized String type
Instance Method Summary collapse
-
#initialize(val = nil) ⇒ CamelString
constructor
A new instance of CamelString.
Constructor Details
#initialize(val = nil) ⇒ CamelString
Returns a new instance of CamelString
105 106 107 108 109 110 111 |
# File 'lib/attribute_struct/monkey_camels.rb', line 105 def initialize(val=nil) super if(val.respond_to?(:_camel?)) _no_hump unless val._camel? @__hump_style = val._hump_style end end |