Class: Symbol
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/rmtools/core/symbol.rb', line 9
def method_missing(method, *args, &block)
if ''.respond_to? method
to_s.__send__ method, *args, &block
else
super
end
end
|
Instance Method Details
#split(splitter = '_') ⇒ Object
Also known as:
/
4
5
6
|
# File 'lib/rmtools/core/symbol.rb', line 4
def split(splitter='_')
to_s.split splitter
end
|