class Sphyg::Enumerators::Base

Enumerator template

Public Class Methods

new(frames) click to toggle source
# File lib/sphyg/enumerators/base.rb, line 7
def initialize(frames)
  @frames = frames
end

Public Instance Methods

next() click to toggle source

`next` is called at each iteration of a throbber's existance. It returns the throbber state to display. For example, simply looping a given array is implemented in 'Enumerators::Cycle'.

# File lib/sphyg/enumerators/base.rb, line 14
def next
  raise AbstractMethodCall, 'Implement :run in a child class'
end