Method: SemanticNavigation::Core::Base#render_if

Defined in:
lib/semantic_navigation/core/base.rb

#render_ifObject



8
9
10
11
12
13
14
15
16
# File 'lib/semantic_navigation/core/base.rb', line 8

def render_if
  unless @render_if.nil?
    @render_if.map do |bl|
      view_object.instance_exec(self, &bl)
    end.all?
  else
    true
  end
end