Class: Perspectives::Base

Inherits:
Object
  • Object
show all
Includes:
Caching, Context, Memoization, Params, Properties, Rendering, Templating
Defined in:
lib/perspectives/base.rb

Direct Known Subclasses

Forms::Base

Constant Summary

Constants included from Properties

Properties::CantUseLambdas

Class Method Summary collapse

Methods included from Caching

included, #render_html, #to_json

Methods included from Rendering

#as_json, #render, #render_html, #to_html, #to_s

Methods included from Context

#respond_to?

Methods included from Params

included, #initialize

Methods included from Memoization

included

Methods included from Properties

included

Methods included from Templating

included

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Perspectives::Context

Class Method Details

.inherited(base) ⇒ Object



21
22
23
# File 'lib/perspectives/base.rb', line 21

def inherited(base)
  base.__send__(:filename=, caller.first[/^(.*?.rb):\d/, 1])
end