class Representable::ParseStrategy::Proc

Using a lambda as parse_strategy does not set the parsed property for you.

Public Class Methods

apply!(name, options) click to toggle source
# File lib/representable/parse_strategies.rb, line 26
def self.apply!(name, options)
  options[:setter]       = lambda { |*| }
  options[:pass_options] = true
  options[:instance]     = options[:parse_strategy]
end