Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/hash_dot.rb
Instance Method Summary collapse
Instance Method Details
#chop ⇒ Object
5 6 7 |
# File 'lib/hash_dot.rb', line 5 def chop to_s.chop.to_sym end |
#last ⇒ Object
9 10 11 |
# File 'lib/hash_dot.rb', line 9 def last slice(-1, 1) end |