Class: Charming::Presentation::Templates::ResolvedTemplate

Inherits:
Data
  • Object
show all
Defined in:
lib/charming/presentation/templates.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#handlerObject (readonly)

Returns the value of attribute handler

Returns:

  • (Object)

    the current value of handler



6
7
8
# File 'lib/charming/presentation/templates.rb', line 6

def handler
  @handler
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



6
7
8
# File 'lib/charming/presentation/templates.rb', line 6

def path
  @path
end

Instance Method Details

#render(view) ⇒ Object



7
8
9
# File 'lib/charming/presentation/templates.rb', line 7

def render(view)
  handler.render(path, view)
end