Class: String

Inherits:
Object show all
Defined in:
lib/is/monkey/keys.rb,
lib/is/monkey/properties.rb

Instance Method Summary collapse

Instance Method Details

#append(*values) ⇒ String

Parameters:

Returns:



190
191
192
# File 'lib/is/monkey/properties.rb', line 190

def append *values
  dup.append! *values
end

#append!(*values) ⇒ self

Parameters:

Returns:

  • (self)


184
185
186
# File 'lib/is/monkey/properties.rb', line 184

def append! *values
  self << ($, + values.join)
end

#to_keySymbol

Returns:



20
21
22
# File 'lib/is/monkey/keys.rb', line 20

def to_key
  gsub('-', '_').intern
end

#to_nameself

Returns:

  • (self)


25
26
27
# File 'lib/is/monkey/keys.rb', line 25

def to_name
  self
end