Module: FormatLogs

Defined in:
lib/format_logs.rb,
lib/format_logs/version.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

VERSION =

format_logs version

"0.1.0"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/format_logs.rb', line 5

def self.included(base)
  puts "Adding formatting to #{base.name}"
  base.send :extend, ClassMethods
  
  base.send :include, InstanceMethods
  base.alias_method_chain :add, :formatting # if base.respond_to? :add
end