class IntVariable
Public Instance Methods
%(n)
click to toggle source
# File lib/static_type/int_variable.rb, line 32 def %(n) @value % n end
*(n)
click to toggle source
# File lib/static_type/int_variable.rb, line 24 def *(n) @value * n end
+(n)
click to toggle source
# File lib/static_type/int_variable.rb, line 16 def +(n) @value + n end
-(n)
click to toggle source
# File lib/static_type/int_variable.rb, line 20 def -(n) @value - n end
/(n)
click to toggle source
# File lib/static_type/int_variable.rb, line 28 def /(n) @value / n end
do() { || ... }
click to toggle source
# File lib/static_type/int_variable.rb, line 2 def do ret = yield if ret.class <= Integer @value = ret else raise end end
to_i()
click to toggle source
# File lib/static_type/int_variable.rb, line 12 def to_i @value end