Class: Representable::ParseStrategy::Sync
- Inherits:
-
Object
- Object
- Representable::ParseStrategy::Sync
- Defined in:
- lib/representable/parse_strategies.rb
Class Method Summary collapse
Class Method Details
.apply!(name, options) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/representable/parse_strategies.rb', line 35 def self.apply!(name, ) [:setter] = lambda { |*| } [:pass_options] = true [:instance] = [:collection] ? lambda { |fragment, i, | .binding.get[i] } : lambda { |fragment, | .binding.get } end |