Class: Peruby::Op::Builtin::SubstringCell
- Inherits:
-
Object
- Object
- Peruby::Op::Builtin::SubstringCell
- Defined in:
- lib/peruby/op/builtin.rb
Overview
Mutable view used when substr appears on the left of an assignment.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(cell, offset, length) ⇒ SubstringCell
constructor
A new instance of SubstringCell.
- #set(value) ⇒ Object
Constructor Details
#initialize(cell, offset, length) ⇒ SubstringCell
Returns a new instance of SubstringCell.
730 731 732 733 734 |
# File 'lib/peruby/op/builtin.rb', line 730 def initialize(cell, offset, length) @cell = cell @offset = offset @length = length end |