Class: Opal::Util::Command
- Inherits:
-
Object
- Object
- Opal::Util::Command
- Defined in:
- opal/lib/opal/util.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(command, options, message = nil) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(command, options, message = nil) ⇒ Command
Returns a new instance of Command
26 27 28 29 |
# File 'opal/lib/opal/util.rb', line 26 def initialize(command, , = nil) @command, @options, @message = command, , return unless command_installed? command, end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command
30 31 32 |
# File 'opal/lib/opal/util.rb', line 30 def command @command end |
#message ⇒ Object (readonly)
Returns the value of attribute message
30 31 32 |
# File 'opal/lib/opal/util.rb', line 30 def @message end |
#options ⇒ Object (readonly)
Returns the value of attribute options
30 31 32 |
# File 'opal/lib/opal/util.rb', line 30 def @options end |