Class: Opal::Util::Command
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
23 24 25 26
# File 'opal/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
#command ⇒ Object (readonly)
Returns the value of attribute command
27 28 29
# File 'opal/lib/opal/util.rb', line 27 def command @command end
#message ⇒ Object (readonly)
Returns the value of attribute message
27 28 29
# File 'opal/lib/opal/util.rb', line 27 def message @message end
#options ⇒ Object (readonly)
Returns the value of attribute options
27 28 29
# File 'opal/lib/opal/util.rb', line 27 def options @options end