Class: TestObject
- Inherits:
-
Object
- Object
- TestObject
- Defined in:
- lib/test.rb
Instance Attribute Summary collapse
-
#p1 ⇒ Object
readonly
Returns the value of attribute p1.
-
#p2 ⇒ Object
readonly
Returns the value of attribute p2.
-
#p3 ⇒ Object
readonly
Returns the value of attribute p3.
Instance Method Summary collapse
-
#initialize(p1, p2, p3) ⇒ TestObject
constructor
A new instance of TestObject.
Constructor Details
#initialize(p1, p2, p3) ⇒ TestObject
Returns a new instance of TestObject.
7 8 9 10 11 |
# File 'lib/test.rb', line 7 def initialize(p1,p2,p3) @p1 = p1 @p2 = p2 @p3 = p3 end |
Instance Attribute Details
#p1 ⇒ Object (readonly)
Returns the value of attribute p1.
6 7 8 |
# File 'lib/test.rb', line 6 def p1 @p1 end |
#p2 ⇒ Object (readonly)
Returns the value of attribute p2.
6 7 8 |
# File 'lib/test.rb', line 6 def p2 @p2 end |
#p3 ⇒ Object (readonly)
Returns the value of attribute p3.
6 7 8 |
# File 'lib/test.rb', line 6 def p3 @p3 end |