Module: Www::View::ClassMethods

Defined in:
lib/www/view.rb

Instance Method Summary collapse

Instance Method Details

#layout(layout) ⇒ Object



11
12
13
# File 'lib/www/view.rb', line 11

def layout(layout)
  @layout = layout
end

#layout_pathObject



15
16
17
# File 'lib/www/view.rb', line 15

def layout_path
  @layout || 'layout'
end

#view_dir(dir) ⇒ Object



19
20
21
# File 'lib/www/view.rb', line 19

def view_dir(dir)
  @view_dir = dir
end

#view_dir_pathObject



23
24
25
# File 'lib/www/view.rb', line 23

def view_dir_path
  @view_dir || '.'
end