Sha256: 3879703bdeac8a9e2a2047b52545870e5183a0c8862c92974f00b22e237e42b0

Contents?: true

Size: 192 Bytes

Versions: 8

Compression:

Stored size: 192 Bytes

Contents

module Erlectricity
  class BooleanCondition < Condition
    def satisfies?(arg)
      [TrueClass, FalseClass].include?(arg.class)
    end

    def binding_for(arg)
      arg
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
mojombo-erlectricity-1.0.0 lib/erlectricity/conditions/boolean.rb
mojombo-erlectricity-1.0.1 lib/erlectricity/conditions/boolean.rb
mojombo-erlectricity-1.0.2 lib/erlectricity/conditions/boolean.rb
erlectricity-funbox-1.1.2 lib/erlectricity/conditions/boolean.rb
erlectricity-1.1.1 lib/erlectricity/conditions/boolean.rb
erlectricity-1.1.0 lib/erlectricity/conditions/boolean.rb
erlectricity-1.0.0 lib/erlectricity/conditions/boolean.rb
erlectricity-1.0.1 lib/erlectricity/conditions/boolean.rb