Class: CLIForge::BinCommand
- Inherits:
-
Object
- Object
- CLIForge::BinCommand
- Defined in:
- lib/cli_forge/bin_command.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #call(arguments) ⇒ Object
-
#initialize(path) ⇒ BinCommand
constructor
A new instance of BinCommand.
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ BinCommand
Returns a new instance of BinCommand.
3 4 5 |
# File 'lib/cli_forge/bin_command.rb', line 3 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/cli_forge/bin_command.rb', line 7 def path @path end |
Instance Method Details
#call(arguments) ⇒ Object
13 14 15 |
# File 'lib/cli_forge/bin_command.rb', line 13 def call(arguments) exec path, *arguments end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/cli_forge/bin_command.rb', line 9 def to_s "#<#{self.class} #{path}>" end |