Class: Opal::Util::Command

Inherits:
Object show all
Defined in:
opal/lib/opal/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, options, message = nil) ⇒ Command

Returns a new instance of Command



18
19
20
21
# File 'opal/lib/opal/util.rb', line 18

def initialize(command, options, message = nil)
  @command, @options, @message = command, options, message
  return unless command_installed? command, message
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command



22
23
24
# File 'opal/lib/opal/util.rb', line 22

def command
  @command
end

#messageObject (readonly)

Returns the value of attribute message



22
23
24
# File 'opal/lib/opal/util.rb', line 22

def message
  @message
end

#optionsObject (readonly)

Returns the value of attribute options



22
23
24
# File 'opal/lib/opal/util.rb', line 22

def options
  @options
end