Module: BottleRocket::ViewHelpers

Includes:
TagBuilders
Defined in:
lib/bottle_rocket/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#countdown(options = {}) ⇒ Object



5
6
7
# File 'lib/bottle_rocket/view_helpers.rb', line 5

def countdown(options={})
  safe_buffer CountdownBuilder.new(options).to_html
end

#countup(options = {}) ⇒ Object



9
10
11
# File 'lib/bottle_rocket/view_helpers.rb', line 9

def countup(options={})
  safe_buffer CountdownBuilder.new(options.merge(direction: :up)).to_html
end