Class: Navigatrix::ListBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/navigatrix/builder.rb

Instance Attribute Summary

Attributes inherited from Builder

#klass

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Builder

build, #define_method, #initialize

Constructor Details

This class inherits a constructor from Navigatrix::Builder

Class Method Details

.klassObject



21
22
23
# File 'lib/navigatrix/builder.rb', line 21

def self.klass
  Navigatrix::Rendering::Strategies::List
end

Instance Method Details

#wrapper(&block) ⇒ Object



25
26
27
28
29
# File 'lib/navigatrix/builder.rb', line 25

def wrapper(&block)
  define_method(:render) do
    instance_exec(render_items, html_attributes, &block)
  end
end