Sha256: 32d358a7acdb746c921e96b558f4845eca7f1c8999f62c881ad8288c5bae45b4

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

class UState::Query
  class GreaterEqual < Node
    def initialize(field, value)
      @field = field
      @value = value
    end
    
    def ===(state)
      x = state.send(@field) and x >= @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/greater_equal.rb