Module: DehumanizeClassName

Defined in:
lib/noodall/templates/features/step_definitions/cms_node_steps.rb

Instance Method Summary collapse

Instance Method Details

#dehumanize(human_name) ⇒ Object

Convert a human readable class name into a class “my class” => MyClass



3
4
5
# File 'lib/noodall/templates/features/step_definitions/cms_node_steps.rb', line 3

def dehumanize(human_name)
  human_name.parameterize('_').pluralize.classify.constantize
end