Class: SVNx::Log::LogEntryPath
- Inherits:
-
Object
- Object
- SVNx::Log::LogEntryPath
- Includes:
- Comparable
- Defined in:
- lib/svnx/log/entry.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(args = Hash.new) ⇒ LogEntryPath
constructor
A new instance of LogEntryPath.
- #match?(action, filter) ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(args = Hash.new) ⇒ LogEntryPath
Returns a new instance of LogEntryPath.
54 55 56 57 58 |
# File 'lib/svnx/log/entry.rb', line 54 def initialize args = Hash.new @kind = args[:kind] @action = args[:action] @name = args[:name] end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
52 53 54 |
# File 'lib/svnx/log/entry.rb', line 52 def action @action end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
52 53 54 |
# File 'lib/svnx/log/entry.rb', line 52 def kind @kind end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
52 53 54 |
# File 'lib/svnx/log/entry.rb', line 52 def name @name end |
Instance Method Details
#<=>(other) ⇒ Object
64 65 66 |
# File 'lib/svnx/log/entry.rb', line 64 def <=> other name <=> other.name end |
#match?(action, filter) ⇒ Boolean
68 69 70 |
# File 'lib/svnx/log/entry.rb', line 68 def match? action, filter @action.to_s == action.to_s && @name.start_with?(filter) end |
#to_s ⇒ Object
60 61 62 |
# File 'lib/svnx/log/entry.rb', line 60 def to_s @name end |