Module: Bali::Objector

Defined in:
lib/bali/objector.rb

Overview

class that will be included in each instantiated target classes as defined in map_rules

Defined Under Namespace

Modules: Statics

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/bali/objector.rb', line 4

def self.included(base)
  base.extend Bali::Objector::Statics
end

Instance Method Details

#can?(subtarget, operation) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/bali/objector.rb', line 8

def can?(subtarget, operation) 
  self.class.can?(subtarget, operation, self)
end

#cant?(subtarget, operation) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/bali/objector.rb', line 12

def cant?(subtarget, operation)
  self.class.can?(subtarget, operation, self)
end