Class: Foo

Inherits:
Object show all
Defined in:
lib/smklib/php_serialize.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFoo

Returns a new instance of Foo.



267
268
269
270
271
# File 'lib/smklib/php_serialize.rb', line 267

def initialize
	@foo    = 'a'
	@bar    = 'b'
	@wibble = 'c'
end

Instance Attribute Details

#barObject

Returns the value of attribute bar.



266
267
268
# File 'lib/smklib/php_serialize.rb', line 266

def bar
  @bar
end

#fooObject

Returns the value of attribute foo.



266
267
268
# File 'lib/smklib/php_serialize.rb', line 266

def foo
  @foo
end

#wibbleObject

Returns the value of attribute wibble.



266
267
268
# File 'lib/smklib/php_serialize.rb', line 266

def wibble
  @wibble
end

Instance Method Details

#to_assocObject



273
274
275
# File 'lib/smklib/php_serialize.rb', line 273

def to_assoc
	[['foo', @foo], ['bar', @bar], ['wibble', @wibble]]
end