Class: Checken::IncludedRule
- Inherits:
-
Object
- Object
- Checken::IncludedRule
- Defined in:
- lib/checken/included_rule.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#condition ⇒ Object
Returns the value of attribute condition.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, &block) ⇒ IncludedRule
constructor
A new instance of IncludedRule.
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
#block ⇒ Object (readonly)
Returns the value of attribute block.
5 6 7 |
# File 'lib/checken/included_rule.rb', line 5 def block @block end |
#condition ⇒ Object
Returns the value of attribute condition.
6 7 8 |
# File 'lib/checken/included_rule.rb', line 6 def condition @condition end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/checken/included_rule.rb', line 4 def key @key end |