Module: Metro::SceneView::ClassMethods
- Defined in:
- lib/metro/views/scene_view.rb
Instance Method Summary collapse
-
#view ⇒ Object
Loads and caches the view content based on the avilable view parsers and the view files defined.
-
#view_name(name = nil) ⇒ Object
A Scene by default uses the name of the Scene to find it’s associated view.
Instance Method Details
#view ⇒ Object
Loads and caches the view content based on the avilable view parsers and the view files defined.
96 97 98 99 100 101 102 |
# File 'lib/metro/views/scene_view.rb', line 96 def view @view ||=begin view = View.new view.name = scene_name view end end |
#view_name(name = nil) ⇒ Object
A Scene by default uses the name of the Scene to find it’s associated view.
85 86 87 88 |
# File 'lib/metro/views/scene_view.rb', line 85 def view_name(name = nil) name ? view.name = name : view.name view.name end |