Module: Interjectable

Defined in:
lib/interjectable.rb,
lib/interjectable/rspec.rb,
lib/interjectable/version.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, RSpecHelper

Constant Summary collapse

MethodAlreadyDefined =
Class.new(StandardError)
VERSION =
"1.3.0"

Class Method Summary collapse

Class Method Details

.extended(mod) ⇒ Object



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

def self.extended(mod)
  mod.send(:extend, ClassMethods)
  mod.send(:include, InstanceMethods)
end

.included(mod) ⇒ Object



8
9
10
11
# File 'lib/interjectable.rb', line 8

def self.included(mod)
  mod.send(:extend, ClassMethods)
  mod.send(:include, InstanceMethods)
end