Class: String

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

Instance Method Summary collapse

Instance Method Details

#classifyObject



6
7
8
# File 'lib/xmlmap.rb', line 6

def classify
  ActiveSupport::Inflector.classify(ActiveSupport::Inflector.singularize(self))
end

#constantizeObject



10
11
12
# File 'lib/xmlmap.rb', line 10

def constantize
  ActiveSupport::Inflector.constantize(self)
end