Class: Metro::Views::NoView
- Inherits:
-
Object
- Object
- Metro::Views::NoView
- Defined in:
- lib/metro/views/no_view.rb
Class Method Summary collapse
-
.exists?(view_path) ⇒ Boolean
A NoView is a last resort view which means this is will always will exist.
-
.format ⇒ Object
The file type format of this view.
-
.parse(view_path) ⇒ Object
A NoView will return an empty Hash to provide compatibility with other view types.
Class Method Details
.exists?(view_path) ⇒ Boolean
A NoView is a last resort view which means this is will always will exist.
12 13 14 |
# File 'lib/metro/views/no_view.rb', line 12 def self.exists?(view_path) true end |
.format ⇒ Object
Returns the file type format of this view.
27 28 29 |
# File 'lib/metro/views/no_view.rb', line 27 def self.format :none end |
.parse(view_path) ⇒ Object
A NoView will return an empty Hash to provide compatibility with other view types.
20 21 22 |
# File 'lib/metro/views/no_view.rb', line 20 def self.parse(view_path) {} end |