Module: FormObject::Utils::StringConverter

Defined in:
lib/form_object/utils/string_converter.rb

Class Method Summary collapse

Class Method Details

.form_name(word) ⇒ Object



10
11
12
13
14
# File 'lib/form_object/utils/string_converter.rb', line 10

def self.form_name( word )
  name = word.split('::').last
  name.gsub!(/Form/, '')
  underscore(name).to_sym
end

.integration_name(word) ⇒ Object



5
6
7
8
# File 'lib/form_object/utils/string_converter.rb', line 5

def self.integration_name( word )
  name = word.split('::').last
  underscore(name)
end