Class: Kalculator::Pointer
- Inherits:
-
Object
- Object
- Kalculator::Pointer
- Defined in:
- lib/kalculator/pointer.rb
Instance Attribute Summary collapse
-
#p ⇒ Object
readonly
Returns the value of attribute p.
Instance Method Summary collapse
-
#initialize(p) ⇒ Pointer
constructor
A new instance of Pointer.
Constructor Details
#initialize(p) ⇒ Pointer
Returns a new instance of Pointer.
4 5 6 |
# File 'lib/kalculator/pointer.rb', line 4 def initialize( p) @p = p end |
Instance Attribute Details
#p ⇒ Object (readonly)
Returns the value of attribute p.
3 4 5 |
# File 'lib/kalculator/pointer.rb', line 3 def p @p end |