Module: SwiperHelper
- Defined in:
- app/helpers/swiper_helper.rb
Instance Method Summary collapse
Instance Method Details
#swiper(items, &block) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/swiper_helper.rb', line 2 def swiper(items, &block) content_tag :div, class: 'swiper-container' do content_tag :div, class: 'swiper-wrapper' do items.each { |item| concat content_tag(:div, yield(item), class: 'swiper-item' ) } end end end |