Module: Erb

Defined in:
lib/erb/view.rb,
lib/erb/view/version.rb

Defined Under Namespace

Modules: View

Class Method Summary collapse

Class Method Details

.rootObject



10
11
12
# File 'lib/erb/view.rb', line 10

def root
  @root ||= Pathname.new(__FILE__).join('../../lib/templates')
end

.root=(path) ⇒ Object



6
7
8
# File 'lib/erb/view.rb', line 6

def root=(path)
  @root = Pathname.new(path).expand_path
end