Class: SubDiff::Builder
- Inherits:
-
Object
- Object
- SubDiff::Builder
- Defined in:
- lib/sub_diff/builder.rb
Instance Attribute Summary collapse
-
#diff_method ⇒ Object
readonly
Returns the value of attribute diff_method.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
- #diff(*args, &block) ⇒ Object
-
#initialize(string, diff_method) ⇒ Builder
constructor
A new instance of Builder.
- #push(*args) ⇒ Object (also: #<<)
Constructor Details
#initialize(string, diff_method) ⇒ Builder
Returns a new instance of Builder.
5 6 7 8 |
# File 'lib/sub_diff/builder.rb', line 5 def initialize(string, diff_method) @string = string @diff_method = diff_method end |
Instance Attribute Details
#diff_method ⇒ Object (readonly)
Returns the value of attribute diff_method.
3 4 5 |
# File 'lib/sub_diff/builder.rb', line 3 def diff_method @diff_method end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
3 4 5 |
# File 'lib/sub_diff/builder.rb', line 3 def string @string end |
Instance Method Details
#diff(*args, &block) ⇒ Object
10 11 12 13 14 |
# File 'lib/sub_diff/builder.rb', line 10 def diff(*args, &block) build_diff_collection do adapter.diff(*args, &block) end end |