Class: Ppr::LineNumber

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ppr/ppr_core.rb

Overview

Describes a storage for line number

Instance Method Summary collapse

Constructor Details

#initialize(num) ⇒ LineNumber

Creates a new storage for line number num.



22
23
24
# File 'lib/ppr/ppr_core.rb', line 22

def initialize(num)
    super(num.to_i)
end

Instance Method Details

#set(num) ⇒ Object

Sets the line number to num.



27
28
29
# File 'lib/ppr/ppr_core.rb', line 27

def set(num)
    __setobj__(num.to_i)
end