Class: Edict::Rule

Inherits:
Object
  • Object
show all
Includes:
Calibrate::Configurable, Calibrate::Configurable::DirectoryStructure
Defined in:
lib/edict/rule.rb

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Rule

Returns a new instance of Rule.

Yields:

  • (_self)

Yield Parameters:

  • _self (Edict::Rule)

    the object that the method was called on



8
9
10
11
12
# File 'lib/edict/rule.rb', line 8

def initialize
  setup_defaults
  yield self
  setup
end

Instance Method Details

#actionObject



22
23
# File 'lib/edict/rule.rb', line 22

def action
end

#enactObject



17
18
19
20
# File 'lib/edict/rule.rb', line 17

def enact
  check_required # from Calibrate
  action
end

#setupObject



14
15
# File 'lib/edict/rule.rb', line 14

def setup
end