Class: Aspector::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/aspector/base.rb,
lib/aspector/base_class_methods.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#apply(target, options = {}) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/aspector/base.rb', line 9

def apply target, options = {}
  default_options = self.class.default_options
  if default_options and not default_options.empty?
    options = default_options.merge(options)
  end

  Interception.new(self, target, options).apply
end

#disabled?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/aspector/base.rb', line 5

def disabled?
  false
end