Sha256: bafff82ec186e47277f45e21281bc5ba86c9f5d3d88bde2a7e52e14dbce11bbf
Contents?: true
Size: 524 Bytes
Versions: 11
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true module Grape class Entity module Exposure class FormatterBlockExposure < Base attr_reader :format_with def setup(&format_with) @format_with = format_with end def dup super(&@format_with) end def ==(other) super && @format_with == other.format_with end def value(entity, _options) entity.exec_with_attribute(attribute, &@format_with) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems