Module: Rdm::Gen::Concerns::TemplateHandling::ClassMethods

Defined in:
lib/rdm/gen/concerns/template_handling.rb

Overview

depends on target_path, templates_path methods in the including class!

Instance Method Summary collapse

Instance Method Details

#disable_logger!Object



8
9
10
# File 'lib/rdm/gen/concerns/template_handling.rb', line 8

def disable_logger!
  @logger_disabled = true
end

#enable_logger!Object



12
13
14
# File 'lib/rdm/gen/concerns/template_handling.rb', line 12

def enable_logger!
  @logger_disabled = false
end

#should_log?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/rdm/gen/concerns/template_handling.rb', line 16

def should_log?
  !@logger_disabled
end