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(={}) safe_buffer CountdownBuilder.new().to_html end |
#countup(options = {}) ⇒ Object
9 10 11 |
# File 'lib/bottle_rocket/view_helpers.rb', line 9 def countup(={}) safe_buffer CountdownBuilder.new(.merge(direction: :up)).to_html end |