Module: MonkeyCamels::Humps
- Defined in:
- lib/attribute_struct/monkey_camels.rb
Instance Method Summary collapse
-
#_bactrian ⇒ self
(also: #bactrian!, #no_leading_hump!)
Set hump style to non-leading upcase.
-
#_camel? ⇒ TrueClass, FalseClass
Camelized.
-
#_dromedary ⇒ self
(also: #dromedary!, #leading_hump!)
Set hump style to leading upcase.
-
#_hump ⇒ self
(also: #camel!)
Enable camelizing.
-
#_hump_format_requested? ⇒ TrueClass, FalseClass
Specific style requested.
-
#_hump_style ⇒ Symbol, NilClass
(also: #hump_style!)
Style of hump.
-
#_no_hump ⇒ self
(also: #disable_camel!)
Disable camelizing.
Instance Method Details
#_bactrian ⇒ self Also known as: bactrian!, no_leading_hump!
Set hump style to non-leading upcase
76 77 78 79 80 |
# File 'lib/attribute_struct/monkey_camels.rb', line 76 def _bactrian @__not_camel = false @__hump_style = :no_leading_hump self end |
#_camel? ⇒ TrueClass, FalseClass
Returns camelized.
46 47 48 |
# File 'lib/attribute_struct/monkey_camels.rb', line 46 def _camel? !@__not_camel end |
#_dromedary ⇒ self Also known as: dromedary!, leading_hump!
Set hump style to leading upcase
88 89 90 91 92 |
# File 'lib/attribute_struct/monkey_camels.rb', line 88 def _dromedary @__not_camel = false @__hump_style = :leading_hump self end |
#_hump ⇒ self Also known as: camel!
Returns enable camelizing.
59 60 61 62 |
# File 'lib/attribute_struct/monkey_camels.rb', line 59 def _hump @__not_camel = false self end |
#_hump_format_requested? ⇒ TrueClass, FalseClass
Returns specific style requested.
41 42 43 |
# File 'lib/attribute_struct/monkey_camels.rb', line 41 def _hump_format_requested? @__not_camel != nil end |
#_hump_style ⇒ Symbol, NilClass Also known as: hump_style!
Returns style of hump.
67 68 69 |
# File 'lib/attribute_struct/monkey_camels.rb', line 67 def _hump_style @__hump_style end |
#_no_hump ⇒ self Also known as: disable_camel!
Returns disable camelizing.
51 52 53 54 |
# File 'lib/attribute_struct/monkey_camels.rb', line 51 def _no_hump @__not_camel = true self end |