Sha256: 383a6844529caf544c4d7d0ba4f40d21f9d43462825381897c2d28dea7f1edcb
Contents?: true
Size: 598 Bytes
Versions: 25
Compression:
Stored size: 598 Bytes
Contents
module Berkshelf module Formatters class Null include AbstractFormatter register_formatter :null # The abstract 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. AbstractFormatter.instance_methods.each do |meth| define_method(meth) do |*args| # intentionally do nothing end end def method_missing(meth, *args, &block) # intentionally do nothing end end end end
Version data entries
25 entries across 25 versions & 1 rubygems