Sha256: 30661cb0317424983682067d11eaa157a5f200f85aa5b3a5b916e30cb5fed030
Contents?: true
Size: 704 Bytes
Versions: 2
Compression:
Stored size: 704 Bytes
Contents
module IronNails module View class TimedCommand < Command # gets the name to use for the timer attr_reader :timer_name attr_accessor :interval alias_method :nails_base_command_read_options, :read_options def read_options(options) nails_base_command_read_options options @timer_name = get_timer_name end # This stops the timer in the view proxy def stop_timer view.stop_timer self end # This starts the timer in the view proxy def start_timer view.start_timer self end private def get_timer_name "__#{name}_ironnails_view_timer" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ironnails-0.0.3 | lib/ironnails/view/commands/timed_command.rb |
ironnails-0.0.1 | lib/ironnails/view/commands/timed_command.rb |