Module: Filigree::Application::ClassMethods

Defined in:
lib/filigree/application.rb

Overview

Class Methods #

Instance Method Summary collapse

Instance Method Details

#finalizevoid

This method returns an undefined value.

Check to make sure all of the required methods are defined.

Raises:

  • (NoMethodError)


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

#runObject

Create a new instance of this application and run it.

Returns:



89
90
91
# File 'lib/filigree/application.rb', line 89

def run
	self.new.run
end