Module: Dill::TextTable::Transformations

Defined in:
lib/dill/text_table/transformations.rb

Class Method Summary collapse

Class Method Details

.keywordObject



4
5
6
# File 'lib/dill/text_table/transformations.rb', line 4

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

.passObject



8
9
10
# File 'lib/dill/text_table/transformations.rb', line 8

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