Sha256: 9e317a8d06601d38d72d279d6784f7c424ec1f703c359bc3707f1569eec977f2

Contents?: true

Size: 195 Bytes

Versions: 4

Compression:

Stored size: 195 Bytes

Contents

class UState::Query
  class Equals
    def initialize(field, value)
      @field = field
      @value = value
    end
    
    def ===(state)
      state.send(@field) == @value
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ustate-client-0.0.6 lib/ustate/query/equals.rb
ustate-client-0.0.5 lib/ustate/query/equals.rb
ustate-client-0.0.4 lib/ustate/query/equals.rb
ustate-client-0.0.3 lib/ustate/query/equals.rb