Class: TreeContext::Alternator Private

Inherits:
Object
  • Object
show all
Defined in:
home_my_yard/templates/visualruby/fulldoc/html/setup.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(first, second) ⇒ Alternator

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Alternator



227
228
229
230
# File 'home_my_yard/templates/visualruby/fulldoc/html/setup.rb', line 227

def initialize(first, second)
  @next = first
  @after = second
end

Instance Method Details

#nextObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



231
232
233
234
# File 'home_my_yard/templates/visualruby/fulldoc/html/setup.rb', line 231

def next
  @next, @after = @after, @next
  @after
end