Class: SVNx::CommandArgs
- Inherits:
-
Object
- Object
- SVNx::CommandArgs
- Includes:
- Loggable
- Defined in:
- lib/svnx/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.
45 46 47 |
# File 'lib/svnx/command.rb', line 45 def initialize args = Hash.new @path = args[:path] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
43 44 45 |
# File 'lib/svnx/command.rb', line 43 def path @path end |
Instance Method Details
#to_a ⇒ Object
49 50 51 |
# File 'lib/svnx/command.rb', line 49 def to_a [ @path ].compact end |