Module: MonkeyCamels::Humps
- Defined in:
- lib/attribute_struct/monkey_camels.rb
Instance Method Summary collapse
-
#_camel? ⇒ TrueClass, FalseClass
Camelized.
-
#_hump ⇒ self
(also: #camel!)
Enable camelizing.
-
#_hump_format_requested? ⇒ TrueClass, FalseClass
Specific style requested.
-
#_no_hump ⇒ self
(also: #disable_camel!)
Disable camelizing.
Instance Method Details
#_camel? ⇒ TrueClass, FalseClass
Returns camelized.
49 50 51 |
# File 'lib/attribute_struct/monkey_camels.rb', line 49 def _camel? !@__not_camel end |
#_hump ⇒ self Also known as: camel!
Returns enable camelizing.
61 62 63 64 |
# File 'lib/attribute_struct/monkey_camels.rb', line 61 def _hump @__not_camel = false self end |
#_hump_format_requested? ⇒ TrueClass, FalseClass
Returns specific style requested.
44 45 46 |
# File 'lib/attribute_struct/monkey_camels.rb', line 44 def _hump_format_requested? @__not_camel != nil end |
#_no_hump ⇒ self Also known as: disable_camel!
Returns disable camelizing.
54 55 56 57 |
# File 'lib/attribute_struct/monkey_camels.rb', line 54 def _no_hump @__not_camel = true self end |