Module: Hashie::Extensions::Mash::DefineAccessors

Defined in:
lib/hashie/extensions/mash/define_accessors.rb

Defined Under Namespace

Classes: Ext

Class Method Summary collapse

Class Method Details

.extended(obj) ⇒ Object



12
13
14
# File 'lib/hashie/extensions/mash/define_accessors.rb', line 12

def self.extended(obj)
  included(obj.singleton_class)
end

.included(klass) ⇒ Object



5
6
7
8
9
10
# File 'lib/hashie/extensions/mash/define_accessors.rb', line 5

def self.included(klass)
  klass.class_eval do
    mod = Ext.new
    include mod
  end
end