Sha256: b668b43ffa21a7761733ff64162aed1c85f2708fe7106dd344fb39f26491a8a4
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
class TokyoMetro::App::Renderer::Document::SizeChangingButton < TokyoMetro::Factory::Decorate::MetaClass 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 private def h_locals super.merge({ icon_names: [ :display_all , :display , :minimize , :minimize_all ] }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/app/renderer/document/size_changing_button.rb |