Class: String

Inherits:
Object show all
Defined in:
lib/dragonfly/core_ext/string.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/string.rb', line 5

def to_method_name
  RUBY_VERSION =~ /^1.8/ ? self : to_sym
end