Class: Chanko::ActiveIf::None
Instance Method Summary collapse
Methods inherited from Block
Constructor Details
This class inherits a constructor from Chanko::ActiveIf::Block
Instance Method Details
#block ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/chanko/active_if.rb', line 82 def block proc do |context, | @conditions.none? do |condition| Block.new(condition).call(context, ) end end end |