Class: TokyoMetro::App::Renderer::Document::SizeChangingButton

Inherits:
Factory::Decorate::MetaClass show all
Defined in:
lib/tokyo_metro/app/renderer/document/size_changing_button.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



3
4
5
6
7
8
9
10
# File 'lib/tokyo_metro/app/renderer/document/size_changing_button.rb', line 3

def render
  h.render inline: <<-HAML , type: :haml , locals: h_locals
%ul{ class: :size_changing_buttons }
- icon_names.each do | icon_name |
  %li{ class: [ :size_changing_button , icon_name ] }
    = ::TokyoMetro::App::Renderer::Icon.send( icon_name , nil , 1 ).render
  HAML
end