Module: RubySmart::SimpleLogger::Extensions::Mask

Included in:
Logger
Defined in:
lib/ruby_smart/simple_logger/extensions/mask.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/ruby_smart/simple_logger/extensions/mask.rb', line 7

def self.included(base)
  base.extend ClassMethods
  base.include InstanceMethods
  base.class_eval do
    # defines the default mask to be used
    #
    # @option [String] :char - the character to be used as mask
    # @option [Integer] :length - the mask length (amount of mask chars be line)
    # @option [Symbol] :clr - the color to be used by printing the mask
    self.mask = { char: '=', length: 120, clr: :blue }
  end
end