module HDLRuby::Vprocess
To include to classes for value processing support.
Public Instance Methods
coerce(other)
click to toggle source
Coercion when operation from Ruby values.
# File lib/HDLRuby/hruby_values.rb, line 59 def coerce(other) return other,self.content end
to_f()
click to toggle source
Conversion to a float if possible.
# File lib/HDLRuby/hruby_values.rb, line 54 def to_f return self.content.to_f end
to_i()
click to toggle source
Conversion to an integer if possible.
# File lib/HDLRuby/hruby_values.rb, line 49 def to_i return self.content.to_i end