Class: Symbol
Instance Method Summary collapse
-
#to_method_name ⇒ Object
Ruby 1.8 reports methods as strings, whereas 1.9 reports them as symbols.
Instance Method Details
#to_method_name ⇒ Object
Ruby 1.8 reports methods as strings, whereas 1.9 reports them as symbols
5 6 7 |
# File 'lib/dragonfly/core_ext/symbol.rb', line 5 def to_method_name RUBY_VERSION =~ /^1.8/ ? to_s : self end |