Class: QuickStart::Executable
- Inherits:
-
Object
- Object
- QuickStart::Executable
- Defined in:
- lib/quick_start/executable.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #checked ⇒ Object (also: #checked?)
- #checked=(value) ⇒ Object
-
#initialize(name, path, options = {}) ⇒ Executable
constructor
A new instance of Executable.
- #run ⇒ Object
Constructor Details
#initialize(name, path, options = {}) ⇒ Executable
Returns a new instance of Executable.
6 7 8 9 10 |
# File 'lib/quick_start/executable.rb', line 6 def initialize(name, path, = {}) @name = name @path = path @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/quick_start/executable.rb', line 4 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/quick_start/executable.rb', line 4 def @options end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/quick_start/executable.rb', line 4 def path @path end |
Instance Method Details
#checked ⇒ Object Also known as: checked?
12 13 14 |
# File 'lib/quick_start/executable.rb', line 12 def checked [:checked] end |
#checked=(value) ⇒ Object
18 19 20 |
# File 'lib/quick_start/executable.rb', line 18 def checked=(value) [:checked] = value end |