Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/BOAST/Algorithm.rb
Instance Method Summary collapse
Instance Method Details
#to_var ⇒ Object
165 166 167 168 169 170 171 |
# File 'lib/BOAST/Algorithm.rb', line 165 def to_var if self < 0 then return BOAST::Variable::new("#{self}", BOAST::Int, :signed => true, :constant => self ) else return BOAST::Variable::new("#{self}", BOAST::Int, :signed => false, :constant => self ) end end |