Class: Arrangement::Composer

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Inflector
Defined in:
lib/arrangement/composer.rb

Instance Method Summary collapse

Instance Method Details

#create(schema) ⇒ Object



9
10
11
12
13
# File 'lib/arrangement/composer.rb', line 9

def create(schema)
  klass = safe_constantize(classify(schema.keys.first))

  klass.new
end