Class: PVN::Revision::Argument
- Inherits:
-
Object
- Object
- PVN::Revision::Argument
show all
- Includes:
- Comparable, Loggable
- Defined in:
- lib/pvn/revision/argument.rb
Overview
-n means to count from the end of the list. +n means to count from the beginning of the list.
n means the literal revision number.
Constant Summary
collapse
- DATE_REGEXP =
Regexp.new '^\{(.*?)\}'
- SVN_ARGUMENT_WORDS =
%w{ HEAD BASE COMMITTED PREV }
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(value) ⇒ Argument
Returns a new instance of Argument.
73
74
75
|
# File 'lib/pvn/revision/argument.rb', line 73
def initialize value
@value = value
end
|
Instance Attribute Details
#log_entry ⇒ Object
Returns the value of attribute log_entry.
30
31
32
|
# File 'lib/pvn/revision/argument.rb', line 30
def log_entry
@log_entry
end
|
#value ⇒ Object
these are also valid revisions :working_copy :head
29
30
31
|
# File 'lib/pvn/revision/argument.rb', line 29
def value
@value
end
|
Class Method Details
.matches_relative?(str) ⇒ Boolean
68
69
70
|
# File 'lib/pvn/revision/argument.rb', line 68
def matches_relative? str
RELATIVE_REVISION_RE.match str
end
|
.new(value, xmllines = nil) ⇒ Object
.orig_new ⇒ Object
33
|
# File 'lib/pvn/revision/argument.rb', line 33
alias_method :orig_new, :new
|
Instance Method Details
#<=>(other) ⇒ Object
81
82
83
|
# File 'lib/pvn/revision/argument.rb', line 81
def <=> other
@value <=> other.value
end
|
#to_s ⇒ Object
77
78
79
|
# File 'lib/pvn/revision/argument.rb', line 77
def to_s
@value.to_s
end
|