Class: Examples

Inherits:
Object show all
Defined in:
lib/pt_testcase.rb

Overview

key: wwtt = what were they thinking?

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#readerObject (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

Parameters:

  • value

    the value to set the attribute writer to.



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