Class: Checken::IncludedRule

Inherits:
Object
  • Object
show all
Defined in:
lib/checken/included_rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, &block) ⇒ IncludedRule



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

def initialize(key, &block)
  @key = key
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



5
6
7
# File 'lib/checken/included_rule.rb', line 5

def block
  @block
end

#conditionObject

Returns the value of attribute condition.



6
7
8
# File 'lib/checken/included_rule.rb', line 6

def condition
  @condition
end

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/checken/included_rule.rb', line 4

def key
  @key
end