Sha256: 8c487a406963623f912d662c6d7a0dd432ad26976b2fd741d871ca1ea2d89581

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 Bytes

Contents

class UState::Query
  class Greater < 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.rb