Module: Chop

Extended by:
Config, DSL
Defined in:
lib/chop.rb,
lib/chop/dsl.rb,
lib/chop/diff.rb,
lib/chop/form.rb,
lib/chop/table.rb,
lib/chop/config.rb,
lib/chop/create.rb,
lib/chop/dfn_dl.rb,
lib/chop/version.rb,
lib/chop/unordered_list.rb,
lib/chop/definition_list.rb

Defined Under Namespace

Modules: Config, DSL Classes: Create, DefinitionList, DfnDl, Diff, Form, Table, UnorderedList

Constant Summary collapse

VERSION =
"0.31.0"
Ul =
UnorderedList
Dl =
DefinitionList

Class Method Summary collapse

Methods included from DSL

create!, diff!, fill_in!

Methods included from Config

register_creation_strategy

Class Method Details

.empty_tableObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/chop.rb', line 16

def self.empty_table
  empty = Cucumber::MultilineArgument::DataTable.from([[]])

  def empty.diff! other_table, **kwargs, &block
    super other_table, **kwargs.reverse_merge(surplus_col: true, surplus_row: true), &block
  rescue Capybara::ElementNotFound
  end

  empty
end