Class: Foo

Inherits:
Object show all
Defined in:
lib/agents/sets/enum/by.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fooObject (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

#valueObject (readonly)

Returns the value of attribute value.



157
158
159
# File 'lib/agents/sets/enum/by.rb', line 157

def value
  @value
end