Sha256: ec36e74487975acaf9341593064431f69b7e4f472853b55bcef14e13fc8d866e

Contents?: true

Size: 270 Bytes

Versions: 1

Compression:

Stored size: 270 Bytes

Contents

class UState::Query
  class Less < 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/less.rb