Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/HDLRuby/hruby_high.rb
Overview
Extends the String class for computing conversion to expression.
Instance Method Summary collapse
-
#to_expr ⇒ Object
Converts to a new high-level expression.
Instance Method Details
#to_expr ⇒ Object
Converts to a new high-level expression.
4120 4121 4122 4123 4124 4125 |
# File 'lib/HDLRuby/hruby_high.rb', line 4120 def to_expr # Convert the string to a bit string. bstr = BitString.new(self) # Use it to create the new value. return Value.new(Bit[bstr.width],self) end |