Sha256: b1a5d8ba5b36f39ae62ed1c6633df0898ee952fd9de628244f6006b392b559e9

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

module Representable
  # Using this module only makes sense with Decorator representers.
  module Cached
    module Property
      def property(*)
        super.tap do |property|
          binding_builder = format_engine::Binding

          map << binding_builder.build(property)
        end
      end
    end

    def self.included(includer)
      includer.extend(Property)
    end

    def representable_map(*)
      self.class.map
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
representable-2.4.0.rc1 lib/representable/cached.rb