Sha256: c63be7c6070a57da8f14d69b9fc5efa816ece343687eb6f24be48c5308592013

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

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

    def inspect
      inspect_helper @field, @value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ustate-client-0.0.7 lib/ustate/query/equals.rb