Class: SVNx::InfoCommandArgs
- Inherits:
-
CommandArgs
- Object
- CommandArgs
- SVNx::InfoCommandArgs
- Defined in:
- lib/svnx/info/command.rb
Instance Attribute Summary collapse
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
Attributes inherited from CommandArgs
Instance Method Summary collapse
-
#initialize(args = Hash.new) ⇒ InfoCommandArgs
constructor
A new instance of InfoCommandArgs.
- #to_a ⇒ Object
Constructor Details
#initialize(args = Hash.new) ⇒ InfoCommandArgs
Returns a new instance of InfoCommandArgs.
16 17 18 19 |
# File 'lib/svnx/info/command.rb', line 16 def initialize args = Hash.new @revision = args[:revision] super end |
Instance Attribute Details
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
14 15 16 |
# File 'lib/svnx/info/command.rb', line 14 def revision @revision end |
Instance Method Details
#to_a ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/svnx/info/command.rb', line 21 def to_a ary = Array.new if @revision @revision.each do |rev| ary << "-r#{rev}" end end if @path ary << @path end ary end |