Skip to content

Commit

Permalink
Rename Builder#build to #build_diff_collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Huber committed Jun 11, 2015
1 parent 1e44d7c commit 8e511be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/sub_diff/builder.rb
Expand Up @@ -6,7 +6,9 @@ def initialize(string, type)
end

def diff(*args, &block)
build { adapter.diff(*args, &block) }
build_diff_collection do
adapter.diff(*args, &block)
end
end

def push(*args)
Expand All @@ -21,7 +23,7 @@ def push(*args)

attr_reader :string, :type

def build(&block)
def build_diff_collection(&block)
collection.reset(&block).dup
end

Expand Down

0 comments on commit 8e511be

Please sign in to comment.