Module: Cucumber::Salad::Table::Transformations

Defined in:
lib/cucumber/salad/table/transformations.rb

Class Method Summary collapse

Class Method Details

.keywordObject



5
6
7
# File 'lib/cucumber/salad/table/transformations.rb', line 5

def self.keyword
  ->(val) { val.squeeze(' ').strip.gsub(' ', '_').sub(/\?$/, '').to_sym }
end

.passObject



9
10
11
# File 'lib/cucumber/salad/table/transformations.rb', line 9

def self.pass
  ->(val) { val }
end