Class: Dither::UnboundParam
- Inherits:
-
Struct
- Object
- Struct
- Dither::UnboundParam
- Defined in:
- lib/dither/unbound_param.rb
Instance Attribute Summary collapse
-
#i ⇒ Object
Returns the value of attribute i.
Instance Method Summary collapse
Instance Attribute Details
#i ⇒ Object
Returns the value of attribute i
3 4 5 |
# File 'lib/dither/unbound_param.rb', line 3 def i @i end |
Instance Method Details
#<=>(param) ⇒ Object
4 5 6 7 |
# File 'lib/dither/unbound_param.rb', line 4 def <=>(param) return -1 unless param.unbound? i <=> param.i end |
#create_params(j) ⇒ Object
13 14 15 |
# File 'lib/dither/unbound_param.rb', line 13 def create_params(j) (0...j).map { |a| Param.new(i, a) } end |
#unbound? ⇒ Boolean
9 10 11 |
# File 'lib/dither/unbound_param.rb', line 9 def unbound? true end |