Method: Range#to_low
- Defined in:
- lib/HDLRuby/hruby_high.rb
#to_low ⇒ Object
Convert the first and last to HDLRuby::Low
5413 5414 5415 5416 5417 5418 5419 |
# File 'lib/HDLRuby/hruby_high.rb', line 5413 def to_low first = self.first first = first.respond_to?(:to_low) ? first.to_low : first last = self.last last = last.respond_to?(:to_low) ? last.to_low : last return (first..last) end |