Module: Behavior

Defined in:
lib/behavior.rb

Defined Under Namespace

Classes: Base, Settings

Class Method Summary collapse

Class Method Details

.configObject



13
14
15
# File 'lib/behavior.rb', line 13

def config
  Behavior::Base.new
end

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/behavior.rb', line 3

def self.included(base)
  base.class_eval do
    def config
      Behavior::Base.new
    end      
    helper_method :config if respond_to?(:helper_method)
  end
end