Module: GBDev::CallbackLogger::ClassMethods

Defined in:
lib/callback_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#callback_logger_text_attrObject

Returns the value of attribute callback_logger_text_attr.



11
12
13
# File 'lib/callback_logger.rb', line 11

def callback_logger_text_attr
  @callback_logger_text_attr
end

Instance Method Details

#log_callbacks(new_options = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/callback_logger.rb', line 13

def log_callbacks(new_options = {}) 
  options = {:text => 'name'}
  options.merge!(new_options)
  
  self.callback_logger_text_attr = options[:text]
                                      
  extend GBDev::CallbackLogger::SingletonMethods
  include GBDev::CallbackLogger::InstanceMethods
end