Class: IronNails::View::CommandCollection
- Inherits:
-
Core::Collection
- Object
- Core::Collection
- IronNails::View::CommandCollection
- 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
#has_command?(command) ⇒ Boolean
40 41 42 43 44 |
# File 'lib/ironnails/view/collections.rb', line 40 def has_command?(command) !self.find do |cmd| command == cmd end.nil? end |