Class: Plato::Site::Template

Inherits:
Struct
  • Object
show all
Defined in:
lib/plato/site.rb,
lib/plato/site.rb

Overview

helpers

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *a, &b) ⇒ Object



124
# File 'lib/plato/site.rb', line 124

def method_missing(m, *a, &b); renderer.send(m, *a, &b)  end

Instance Attribute Details

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



121
122
123
# File 'lib/plato/site.rb', line 121

def format
  @format
end

#rendererObject

Returns the value of attribute renderer

Returns:

  • (Object)

    the current value of renderer



121
122
123
# File 'lib/plato/site.rb', line 121

def renderer
  @renderer
end