Class: Milestoner::Views::Scopes::Content

Inherits:
Hanami::View::Scope
  • Object
show all
Defined in:
lib/milestoner/views/scopes/content.rb

Overview

The content specific behavior for partials.

Instance Method Summary collapse

Instance Method Details

#callObject



13
# File 'lib/milestoner/views/scopes/content.rb', line 13

def call = content.empty? ? render("milestones/none") : render("milestones/content")

#contentObject



11
# File 'lib/milestoner/views/scopes/content.rb', line 11

def content = String locals.fetch(:content, Core::EMPTY_STRING)