Class: Opt::Binary

Inherits:
Integer show all
Defined in:
lib/opt/binary.rb

Instance Attribute Summary

Attributes inherited from Variable

#bounds, #name, #value

Attributes inherited from Expression

#parts

Instance Method Summary collapse

Methods inherited from Variable

#inspect, #vars

Methods inherited from Expression

#*, #+, #-, #-@, #<, #<=, #==, #>, #>=, #coerce, #inspect, to_expression, #value, #vars

Constructor Details

#initialize(name = nil) ⇒ Binary

Returns a new instance of Binary.



3
4
5
# File 'lib/opt/binary.rb', line 3

def initialize(name = nil)
  super(0..1, name)
end