class Berkshelf::BaseFormatter
Public Class Methods
Source
# File lib/berkshelf/formatters/base.rb, line 9 def formatter_method(name) class_eval <<-EOH, __FILE__, __LINE__ + 1 def #{name}(*args) raise AbstractFunction, "##{name} must be implemented on \#{self.class.name}!" end EOH end
@macro formatter_method
@method $1(*args) Create a formatter method for the declaration
Public Instance Methods
Source
# File lib/berkshelf/formatters/base.rb, line 41 def cleanup_hook; end
The cleanup hook is defined by subclasses and is called by the CLI.