Sha256: c8c2204ea8082088592f7ad34104739c4b39b11b7ab33b62f08e38f3282f4162
Contents?: true
Size: 362 Bytes
Versions: 5
Compression:
Stored size: 362 Bytes
Contents
module Grape class Entity module Condition class SymbolCondition < Base attr_reader :symbol def setup(symbol) @symbol = symbol end def ==(other) super && @symbol == other.symbol end def if_value(_entity, options) options[symbol] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems