Module: Filigree::Application::ClassMethods
- Defined in:
- lib/filigree/application.rb
Overview
Class Methods #
Instance Method Summary collapse
-
#finalize ⇒ void
Check to make sure all of the required methods are defined.
-
#run ⇒ Object
Create a new instance of this application and run it.
Instance Method Details
#finalize ⇒ void
This method returns an undefined value.
Check to make sure all of the required methods are defined.
78 79 80 81 82 83 84 |
# File 'lib/filigree/application.rb', line 78 def finalize REQUIRED_METHODS.each do |method| if not self.instance_methods.include?(method) raise(NoMethodError, "Application #{self.name} missing method: #{method}") end end end |
#run ⇒ Object
Create a new instance of this application and run it.
89 90 91 |
# File 'lib/filigree/application.rb', line 89 def run self.new.run end |