module MonkeyCamels::Humps

Public Instance Methods

_bactrian() click to toggle source

Set hump style to non-leading upcase

@return [self]

# File lib/attribute_struct/monkey_camels.rb, line 76
def _bactrian
  @__not_camel = false
  @__hump_style = :no_leading_hump
  self
end
Also aliased as: bactrian!, no_leading_hump!
_camel?() click to toggle source

@return [TrueClass, FalseClass] camelized

# File lib/attribute_struct/monkey_camels.rb, line 46
def _camel?
  !@__not_camel
end
_dromedary() click to toggle source

Set hump style to leading upcase

@return [self]

# File lib/attribute_struct/monkey_camels.rb, line 88
def _dromedary
  @__not_camel = false
  @__hump_style = :leading_hump
  self
end
Also aliased as: dromedary!, leading_hump!
_hump() click to toggle source

@return [self] enable camelizing

# File lib/attribute_struct/monkey_camels.rb, line 59
def _hump
  @__not_camel = false
  self
end
Also aliased as: camel!
_hump_format_requested?() click to toggle source

@return [TrueClass, FalseClass] specific style requested

# File lib/attribute_struct/monkey_camels.rb, line 41
def _hump_format_requested?
  @__not_camel != nil
end
_hump_style() click to toggle source

@return [Symbol, NilClass] style of hump

# File lib/attribute_struct/monkey_camels.rb, line 67
def _hump_style
  @__hump_style
end
Also aliased as: hump_style!
_no_hump() click to toggle source

@return [self] disable camelizing

# File lib/attribute_struct/monkey_camels.rb, line 51
def _no_hump
  @__not_camel = true
  self
end
Also aliased as: disable_camel!
bactrian!()
Alias for: _bactrian
camel!()
Alias for: _hump
disable_camel!()
Alias for: _no_hump
dromedary!()
Alias for: _dromedary
hump_style!()
Alias for: _hump_style
leading_hump!()
Alias for: _dromedary
no_leading_hump!()
Alias for: _bactrian