class Blueprinter::Base

def self.view(view_name)

Returns:
  • (View) - a Blueprinter::View object

Other tags:
    Example: Using views -

Other tags:
    Yieldreturn: - Use this block to

Parameters:
  • view_name (Symbol) -- the view name
def self.view(view_name)
  @current_view = view_collection[view_name]
  view_collection[:default].track_definition_order(view_name)
  yield
  @current_view = view_collection[:default]
end