Method: Chop::Diff#initialize

Defined in:
lib/chop/diff.rb

#initialize(selector = nil, table = nil, session = Capybara.current_session, timeout = Capybara.default_max_wait_time, block = nil, &other_block) ⇒ Diff

Returns a new instance of Diff.



30
31
32
33
34
35
36
37
# File 'lib/chop/diff.rb', line 30

def initialize selector = nil, table = nil, session = Capybara.current_session, timeout = Capybara.default_max_wait_time, block = nil, &other_block
  super
  self.selector ||= default_selector
  self.header_transformations = []
  self.transformations = []
  instance_eval &block if block.respond_to?(:call)
  instance_eval &other_block if block_given?
end