Module: Profilizer::ModuleMethods
- Included in:
- Profilizer
- Defined in:
- lib/profilizer.rb
Instance Method Summary collapse
Instance Method Details
#included(base = nil, &block) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/profilizer.rb', line 20 def included(base = nil, &block) if base.nil? && block super do instance_exec(&block) instance_exec(&OUR_BLOCK) end else base.instance_exec(&OUR_BLOCK) end end |