Module: MonkeyCamels::Humps

Defined in:
lib/attribute_struct/monkey_camels.rb

Instance Method Summary collapse

Instance Method Details

#_camel?TrueClass, FalseClass

Returns camelized.

Returns:

  • (TrueClass, FalseClass)

    camelized



49
50
51
# File 'lib/attribute_struct/monkey_camels.rb', line 49

def _camel?
  !@__not_camel
end

#_humpself Also known as: camel!

Returns enable camelizing.

Returns:

  • (self)

    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.

Returns:

  • (TrueClass, FalseClass)

    specific style requested



44
45
46
# File 'lib/attribute_struct/monkey_camels.rb', line 44

def _hump_format_requested?
  @__not_camel != nil
end

#_no_humpself Also known as: disable_camel!

Returns disable camelizing.

Returns:

  • (self)

    disable camelizing



54
55
56
57
# File 'lib/attribute_struct/monkey_camels.rb', line 54

def _no_hump
  @__not_camel = true
  self
end