lib/grape_entity/condition/block_condition.rb in grape-entity-0.6.1 vs lib/grape_entity/condition/block_condition.rb in grape-entity-0.7.0
- old
+ new
@@ -1,11 +1,13 @@
+# frozen_string_literal: true
+
module Grape
class Entity
module Condition
class BlockCondition < Base
attr_reader :block
- def setup(&block)
+ def setup(block)
@block = block
end
def ==(other)
super && @block == other.block