Class: Comma::HeaderExtractor
- Defined in:
- lib/comma/header_extractor.rb
Constant Summary collapse
- DEFAULT_VALUE_HUMANIZER =
lambda do |value, _model_class| value.is_a?(String) ? value : value.to_s.humanize end
Instance Method Summary collapse
Methods inherited from Extractor
#__use__, #id, #initialize, #method_missing, #results
Constructor Details
This class inherits a constructor from Comma::Extractor
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Comma::Extractor
Instance Method Details
#__static_column__(header = '', &_block) ⇒ Object
19 20 21 |
# File 'lib/comma/header_extractor.rb', line 19 def __static_column__(header = '', &_block) @results << header end |