Class: IronNails::View::ViewCollection
- Inherits:
-
Core::Collection
- Object
- Core::Collection
- IronNails::View::ViewCollection
- Defined in:
- lib/ironnails/view/collections.rb
Instance Method Summary collapse
Methods inherited from Core::Collection
#<<, #[], #each, #initialize, #to_a
Constructor Details
This class inherits a constructor from IronNails::Core::Collection
Instance Method Details
#find_view(name) ⇒ Object
54 55 56 |
# File 'lib/ironnails/view/collections.rb', line 54 def find_view(name) self.find { |vw| vw[:name] == name } end |
#has_view?(view) ⇒ Boolean
50 51 52 |
# File 'lib/ironnails/view/collections.rb', line 50 def has_view?(view) find_view(view[:name]).nil? end |