Class: AttributeStruct::CamelString
- Inherits:
-
String
- Object
- String
- AttributeStruct::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.
112 113 114 115 116 117 118 119 120 |
# File 'lib/attribute_struct/monkey_camels.rb', line 112 def initialize(val = nil) super if (val.respond_to?(:_camel?)) _no_hump unless val._camel? @__hump_style = val._hump_style else @__hump_style = nil end end |