Sha256: 856df432c4c0ea250fb7e1d42b35891a45bcb5e40742e0d58c40d2ea30a0bc8f

Contents?: true

Size: 282 Bytes

Versions: 29

Compression:

Stored size: 282 Bytes

Contents

module Dither
  UnboundParam = Struct.new(:i) do
    def <=>(param)
      return -1 unless param.unbound?
      i <=> param.i
    end

    def unbound?
      true
    end

    def create_params(j)
      (0...j).map { |a| Param.new(i, a) }
    end
  end # UnboundParam
end # Dither

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dither-0.0.10 lib/dither/unbound_param.rb
dither-0.0.10-java lib/dither/unbound_param.rb
dither-0.0.9-java lib/dither/unbound_param.rb
dither-0.0.9 lib/dither/unbound_param.rb
dither-0.0.8-java lib/dither/unbound_param.rb
dither-0.0.8 lib/dither/unbound_param.rb
dither-0.0.7 lib/dither/unbound_param.rb
dither-0.0.6 lib/dither/unbound_param.rb
dither-0.0.5 lib/dither/unbound_param.rb