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



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

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



109
110
111
# File 'lib/plato/site.rb', line 109

def format
  @format
end

#rendererObject

Returns the value of attribute renderer

Returns:

  • (Object)

    the current value of renderer



109
110
111
# File 'lib/plato/site.rb', line 109

def renderer
  @renderer
end