Class: HomeworkReport::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/homework_report/scope.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Scope

Constructor



5
6
7
# File 'lib/homework_report/scope.rb', line 5

def initialize(&block)
  self.instance_eval &block if block
end

Instance Method Details

#rendererObject

Renderer Object



13
# File 'lib/homework_report/scope.rb', line 13

def renderer; (@renderer ||= Renderer.new(self)); end