Class: GitHack::SimpleLineBuilder
- Inherits:
-
LineBuilder
- Object
- LineBuilder
- GitHack::SimpleLineBuilder
- Defined in:
- lib/git-hack/simple_line_builder.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from LineBuilder
Instance Method Summary collapse
-
#initialize(data, index) ⇒ SimpleLineBuilder
constructor
A new instance of SimpleLineBuilder.
- #process_line ⇒ Object
Methods inherited from LineBuilder
#all_objects, #find_all, #get_next, #in?, #is_over?, #object, #out?, #parse, #rest
Constructor Details
#initialize(data, index) ⇒ SimpleLineBuilder
Returns a new instance of SimpleLineBuilder.
7 8 9 |
# File 'lib/git-hack/simple_line_builder.rb', line 7 def initialize(data,index) super(data,index) end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/git-hack/simple_line_builder.rb', line 6 def value @value end |
Instance Method Details
#process_line ⇒ Object
10 11 12 13 14 |
# File 'lib/git-hack/simple_line_builder.rb', line 10 def process_line line = @data[@index].chomp.split @object = line.shift @value = line.shift end |