Class: Opt::Binary
- Inherits:
-
Integer
- Object
- Expression
- Variable
- Integer
- Opt::Binary
- Defined in:
- lib/opt/binary.rb
Instance Attribute Summary
Attributes inherited from Variable
Attributes inherited from Expression
Instance Method Summary collapse
-
#initialize(name = nil) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from Variable
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 |