Class: Opal::Util::Command

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

Direct Known Subclasses

DigestSourceCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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


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

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


27
28
29
# File 'lib/opal/util.rb', line 27

def command
  @command
end

#messageObject (readonly)

Returns the value of attribute message


27
28
29
# File 'lib/opal/util.rb', line 27

def message
  @message
end

#optionsObject (readonly)

Returns the value of attribute options


27
28
29
# File 'lib/opal/util.rb', line 27

def options
  @options
end