Sha256: a8f3aea89c828e5e98d2635c2704fe06a003a234cd3163ba05de4367736b3ae0
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
class TokyoMetro::App::Renderer::SideMenu < TokyoMetro::Factory::Decorate::MetaClass def self.render_all( request ) h.render inline: <<-HAML , type: :haml , locals: { all_list: all_list( request ) } %div{ id: :side_menu } - all_list.each do | list | = list.render HAML end private class << self def list_class_name ::TokyoMetro::App::Renderer::SideMenu::Link::List end def list_names [ :to_main_contents , :to_documents , :to_other_websites ] end def all_list( request ) list_names.map { | list_name | list_class_name.send( list_name , request ) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/app/renderer/side_menu.rb |