Class: CamelString

Inherits:
String
  • Object
show all
Defined in:
lib/attribute_struct/monkey_camels.rb

Overview

Specialized String type

Instance Method Summary collapse

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