class Sirens::ClassBrowser
Public Instance Methods
render_with(layout)
click to toggle source
Building
# File lib/sirens/components/class_browser.rb, line 6 def render_with(layout) browser_model = model layout.render do |component| horizontal_splitter do component AncestorsList.new( model: browser_model.module_ancestors, splitter_proportion: 1.0/2.0 ) tabs do styles splitter_proportion: 1.0/2.0 component MethodsList.new( model: browser_model.methods, instance_or_class_methods_chooser: browser_model.instance_or_class_methods_chooser, show_inherit_methods: browser_model.show_inherit_methods, show_public_methods: browser_model.show_public_methods, show_protected_methods: browser_model.show_protected_methods, show_private_methods: browser_model.show_private_methods, tab_label: 'Methods', get_method_image_block: proc{ |method| method.icon } ) component ConstantsList.new( model: browser_model.constants, tab_label: 'Constants' ) end end end end