class Berkshelf::BaseFormatter
Public Class Methods
formatter_method(name)
click to toggle source
@macro formatter_method
@method $1(*args) Create a formatter method for the declaration
# 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
Public Instance Methods
cleanup_hook()
click to toggle source
The cleanup hook is defined by subclasses and is called by the CLI.
# File lib/berkshelf/formatters/base.rb, line 41 def cleanup_hook; end