Class: Representable::ParseStrategy::Proc
- Inherits:
-
Object
- Object
- Representable::ParseStrategy::Proc
- Defined in:
- lib/representable/parse_strategies.rb
Overview
Using a lambda as parse_strategy does not set the parsed property for you.
Class Method Summary collapse
Class Method Details
.apply!(name, options) ⇒ Object
26 27 28 29 30 |
# File 'lib/representable/parse_strategies.rb', line 26 def self.apply!(name, ) [:setter] = lambda { |*| } [:pass_options] = true [:instance] = [:parse_strategy] end |