Module: Capybara::UI::TextTable::Transformations

Defined in:
lib/capybara/ui/text_table/transformations.rb

Class Method Summary collapse

Class Method Details

.keywordObject


5
6
7
# File 'lib/capybara/ui/text_table/transformations.rb', line 5

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

.passObject


9
10
11
# File 'lib/capybara/ui/text_table/transformations.rb', line 9

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