Class: Examples
Overview
key: wwtt = what were they thinking?
Instance Attribute Summary collapse
-
#reader ⇒ Object
readonly
Returns the value of attribute reader.
-
#writer ⇒ Object
writeonly
Sets the attribute writer.
Instance Method Summary collapse
- #a_method(x) ⇒ Object (also: #an_alias)
Instance Attribute Details
#reader ⇒ Object (readonly)
Returns the value of attribute reader.
13 14 15 |
# File 'lib/pt_testcase.rb', line 13 def reader @reader end |
#writer=(value) ⇒ Object (writeonly)
Sets the attribute writer
14 15 16 |
# File 'lib/pt_testcase.rb', line 14 def writer=(value) @writer = value end |
Instance Method Details
#a_method(x) ⇒ Object Also known as: an_alias
16 |
# File 'lib/pt_testcase.rb', line 16 def a_method x; x+1; end |