Class: Test

Inherits:
Object
  • Object
show all
Defined in:
lib/fsdb/nonpersistent-attr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y, z) ⇒ Test

Returns a new instance of Test.



47
48
49
50
51
# File 'lib/fsdb/nonpersistent-attr.rb', line 47

def initialize x, y, z
  self.x = x
  self.y = y
  @z = z
end

Instance Attribute Details

#zObject

Returns the value of attribute z.



45
46
47
# File 'lib/fsdb/nonpersistent-attr.rb', line 45

def z
  @z
end