Class: Brule::Rule

Inherits:
Struct
  • Object
show all
Extended by:
RuleHelpers
Defined in:
lib/brule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RuleHelpers

config_reader, context_accessor, context_reader, context_writer

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



31
32
33
# File 'lib/brule.rb', line 31

def config
  @config
end

#contextObject

Returns the value of attribute context.



34
35
36
# File 'lib/brule.rb', line 34

def context
  @context
end

Instance Method Details

#applyObject

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/brule.rb', line 40

def apply
  raise NotImplementedError
end

#trigger?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/brule.rb', line 36

def trigger?
  true
end