Class: Ppr::LineNumber
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Ppr::LineNumber
- Defined in:
- lib/ppr/ppr_core.rb
Overview
Describes a storage for line number
Instance Method Summary collapse
-
#initialize(num) ⇒ LineNumber
constructor
Creates a new storage for line number
num
. -
#set(num) ⇒ Object
Sets the line number to
num
.
Constructor Details
#initialize(num) ⇒ LineNumber
Creates a new storage for line number num
.
23 24 25 |
# File 'lib/ppr/ppr_core.rb', line 23 def initialize(num) super(num.to_i) end |
Instance Method Details
#set(num) ⇒ Object
Sets the line number to num
.
28 29 30 |
# File 'lib/ppr/ppr_core.rb', line 28 def set(num) __setobj__(num.to_i) end |