Sha256: e5ab8db039738010c030a506b47ba62ed012e93c413ab27a6efcea9b9c04943c
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
module Helium class Console define_formatter_for Module do def call light_yellow(object.name || anonymus_text) end private def anonymus_text closest = object.ancestors.find(&:name).name "(anonymous #{closest})" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
helium-console-0.1.7 | lib/helium/console/registry/module.rb |
helium-console-0.1.6 | lib/helium/console/registry/module.rb |