Class: Rubydium::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rubydium/config.rb

Overview

Things that a full-fledged bot probably needs to know. Not necessary for basic functionality, though.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/rubydium/config.rb', line 27

def method_missing(method, ...)
  if method[-1] == "="
    self.class.attr_accessor method[0..-2]
    public_send(method, ...)
  else
    super(method, ...)
  end
end