Class: Foo
Instance Attribute Summary collapse
-
#bar ⇒ Object
Returns the value of attribute bar.
-
#foo ⇒ Object
Returns the value of attribute foo.
-
#wibble ⇒ Object
Returns the value of attribute wibble.
Instance Method Summary collapse
-
#initialize ⇒ Foo
constructor
A new instance of Foo.
- #to_assoc ⇒ Object
Constructor Details
#initialize ⇒ Foo
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
#bar ⇒ Object
Returns the value of attribute bar.
266 267 268 |
# File 'lib/smklib/php_serialize.rb', line 266 def @bar end |
#foo ⇒ Object
Returns the value of attribute foo.
266 267 268 |
# File 'lib/smklib/php_serialize.rb', line 266 def foo @foo end |
#wibble ⇒ Object
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_assoc ⇒ Object
273 274 275 |
# File 'lib/smklib/php_serialize.rb', line 273 def to_assoc [['foo', @foo], ['bar', @bar], ['wibble', @wibble]] end |