Class: SVNx::CommandArgs
- Inherits:
-
Object
- Object
- SVNx::CommandArgs
- Includes:
- Logue::Loggable
- Defined in:
- lib/svnx/base/args.rb
Direct Known Subclasses
CatCommandArgs, InfoCommandArgs, StatusCommandArgs, SvnLog::Args
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.
16 17 18 |
# File 'lib/svnx/base/args.rb', line 16 def initialize args = Hash.new @path = args[:path] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/svnx/base/args.rb', line 14 def path @path end |
Instance Method Details
#to_a ⇒ Object
20 21 22 |
# File 'lib/svnx/base/args.rb', line 20 def to_a [ @path ].compact end |