Sha256: 9310cbea1866cfb686ecb9667da9f7ca3897f231c289287f321c9059f1de1644
Contents?: true
Size: 427 Bytes
Versions: 78
Compression:
Stored size: 427 Bytes
Contents
module Berkshelf class NullFormatter < BaseFormatter # The base formatter dynamically defines methods that raise an # AbstractFunction error. We need to define all of those on our class, # otherwise they will be inherited by the Ruby object model. BaseFormatter.instance_methods(false).each do |name| class_eval <<-EOH, __FILE__, __LINE__ + 1 def #{name}(*args); end EOH end end end
Version data entries
78 entries across 78 versions & 1 rubygems