Method: Sequent::Generator::Command#initialize
- Defined in:
- lib/sequent/generator/command.rb
#initialize(name, command, attrs) ⇒ Command
Returns a new instance of Command.
16 17 18 19 20 |
# File 'lib/sequent/generator/command.rb', line 16 def initialize(name, command, attrs) @name = name @command = command @attrs = attrs.map { |a| a.split(':') } end |