Class: Fastr::Controller

Inherits:
Object
  • Object
show all
Includes:
Deferrable, Template
Defined in:
lib/fastr/controller.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Deferrable

#defer_response

Methods included from Template

included, #render, #render_haml, #render_text

Instance Attribute Details

#envObject

Returns the value of attribute env.



3
4
5
# File 'lib/fastr/controller.rb', line 3

def env
  @env
end

Class Method Details

.inherited(kls) ⇒ Object



8
9
10
# File 'lib/fastr/controller.rb', line 8

def self.inherited(kls)
  kls.instance_eval('include Fastr::Log')
end