lib/cascade/row_processor.rb in cascade-rb-0.1.5 vs lib/cascade/row_processor.rb in cascade-rb-0.2.0
- old
+ new
@@ -1,12 +1,14 @@
require "cascade/complex_fields"
require "cascade/exceptions"
require "cascade/helpers/configuration"
+require "cascade/helpers/hash"
module Cascade
class RowProcessor
extend Configuration
+ using HashRefinements
DEFAULT_PROCESSOR = ->(value) { value }
define_setting :use_default_presenter, false
define_setting :deafult_presenter, -> { DEFAULT_PROCESSOR }
@@ -41,10 +43,9 @@
def defined_presenters
{
string: DEFAULT_PROCESSOR,
currency: ComplexFields::Currency.new,
- country_iso: ComplexFields::CountryIso.new,
boolean: ComplexFields::Boolean.new,
}
end
end
end