Class: GenerateModel

Inherits:
IRB::Command::Base
  • Object
show all
Defined in:
lib/alet/irb/command/generate_model.rb

Instance Method Summary collapse

Instance Method Details

#execute(arg) ⇒ Object



6
7
8
9
# File 'lib/alet/irb/command/generate_model.rb', line 6

def execute(arg)
  object_types = arg.split(' ').map{|s| s.tr(' ', '')}
  SObjectModel.generate(*object_types)
end