Class: SVNx::CommandArgs
- Inherits:
-
Object
- Object
- SVNx::CommandArgs
- Includes:
- Logue::Loggable
- Defined in:
- lib/svnx/base/command.rb
Direct Known Subclasses
CatCommandArgs, InfoCommandArgs, LogCommandArgs, StatusCommandArgs
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(args = Hash.new) ⇒ CommandArgs
constructor
A new instance of CommandArgs.
- #to_a ⇒ Object
Constructor Details
#initialize(args = Hash.new) ⇒ CommandArgs
Returns a new instance of CommandArgs.
49 50 51 |
# File 'lib/svnx/base/command.rb', line 49 def initialize args = Hash.new @path = args[:path] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
47 48 49 |
# File 'lib/svnx/base/command.rb', line 47 def path @path end |
Instance Method Details
#to_a ⇒ Object
53 54 55 |
# File 'lib/svnx/base/command.rb', line 53 def to_a [ @path ].compact end |