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



40
41
42
# File 'lib/attribute_struct/monkey_camels.rb', line 40

def _camel?
  !@__not_camel
end

#_humpself

Returns enable camelizing.

Returns:

  • (self)

    enable camelizing



51
52
53
54
# File 'lib/attribute_struct/monkey_camels.rb', line 51

def _hump
  @__not_camel = false
  self
end

#_no_humpself

Returns disable camelizing.

Returns:

  • (self)

    disable camelizing



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

def _no_hump
  @__not_camel = true
  self
end