Class: Examples
Overview
TODO: <ko1_> 1.8.7 support {|&b|} syntax
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.
12 13 14 |
# File 'lib/pt_testcase.rb', line 12 def reader @reader end |
#writer=(value) ⇒ Object (writeonly)
Sets the attribute writer
13 14 15 |
# File 'lib/pt_testcase.rb', line 13 def writer=(value) @writer = value end |
Instance Method Details
#a_method(x) ⇒ Object Also known as: an_alias
15 |
# File 'lib/pt_testcase.rb', line 15 def a_method(x); x+1; end |