Class: Svnx::Revision::Argument
- Inherits:
-
Object
- Object
- Svnx::Revision::Argument
show all
- Includes:
- Comparable, Logue::Loggable
- Defined in:
- lib/svnx/revision/argument.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
these are also valid revisions :working_copy :head.
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(value) ⇒ Argument
Returns a new instance of Argument.
39
40
41
|
# File 'lib/svnx/revision/argument.rb', line 39
def initialize value
@value = value
end
|
Instance Attribute Details
#value ⇒ Object
these are also valid revisions :working_copy :head
31
32
33
|
# File 'lib/svnx/revision/argument.rb', line 31
def value
@value
end
|
Class Method Details
.create(value, args = Hash.new) ⇒ Object
34
35
36
|
# File 'lib/svnx/revision/argument.rb', line 34
def create value, args = Hash.new
ArgumentFactory.new.create value, args
end
|
Instance Method Details
#<=>(other) ⇒ Object
47
48
49
|
# File 'lib/svnx/revision/argument.rb', line 47
def <=> other
@value <=> (other.kind_of?(Argument) ? other.value : other)
end
|
#to_s ⇒ Object
43
44
45
|
# File 'lib/svnx/revision/argument.rb', line 43
def to_s
@value.to_s
end
|