Class: Metro::AfterIntervalFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/metro/animation/after_interval_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ticks, &block) ⇒ AfterIntervalFactory

Returns a new instance of AfterIntervalFactory.



6
7
8
9
# File 'lib/metro/animation/after_interval_factory.rb', line 6

def initialize(ticks,&block)
  @ticks = ticks
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



4
5
6
# File 'lib/metro/animation/after_interval_factory.rb', line 4

def block
  @block
end

#ticksObject (readonly)

Returns the value of attribute ticks.



4
5
6
# File 'lib/metro/animation/after_interval_factory.rb', line 4

def ticks
  @ticks
end