Class: Foo
Instance Attribute Summary collapse
-
#next_foo ⇒ Object
readonly
Returns the value of attribute next_foo.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, next_foo = nil) ⇒ Foo
constructor
A new instance of Foo.
Constructor Details
#initialize(value, next_foo = nil) ⇒ Foo
Returns a new instance of Foo.
159 160 161 162 |
# File 'lib/agents/sets/enum/by.rb', line 159 def initialize value, next_foo = nil @value = value @next_foo = next_foo end |
Instance Attribute Details
#next_foo ⇒ Object (readonly)
Returns the value of attribute next_foo.
157 158 159 |
# File 'lib/agents/sets/enum/by.rb', line 157 def next_foo @next_foo end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
157 158 159 |
# File 'lib/agents/sets/enum/by.rb', line 157 def value @value end |