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
| 62 63 64 65 66 | # File 'lib/representable/parse_strategies.rb', line 62 def self.apply!(name, ) [:setter] = lambda { |*| } [:pass_options] = true [:instance] = [:parse_strategy] end |