Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m) ⇒ Object

allow symbol chaining: :one.two.three



4
5
6
# File 'lib/core_ext.rb', line 4

def method_missing(m)
  [self.to_s, m.to_s].join('.').to_sym
end