Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#to_method_nameObject

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