Class: Textus::Manifest::Rules::Block
- Inherits:
-
Object
- Object
- Textus::Manifest::Rules::Block
- Defined in:
- lib/textus/manifest/rules.rb
Instance Attribute Summary collapse
-
#guard ⇒ Object
readonly
Returns the value of attribute guard.
-
#handler_allowlist ⇒ Object
readonly
Returns the value of attribute handler_allowlist.
-
#lifecycle ⇒ Object
readonly
Returns the value of attribute lifecycle.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
Instance Method Summary collapse
-
#initialize(raw) ⇒ Block
constructor
A new instance of Block.
Constructor Details
#initialize(raw) ⇒ Block
Returns a new instance of Block.
48 49 50 51 52 53 |
# File 'lib/textus/manifest/rules.rb', line 48 def initialize(raw) @match = raw["match"] or raise Textus::UsageError.new("rule block missing match:") @handler_allowlist = parse_handler_allowlist(raw["intake_handler_allowlist"]) @guard = parse_guard(raw["guard"]) @lifecycle = parse_lifecycle(raw["lifecycle"]) end |
Instance Attribute Details
#guard ⇒ Object (readonly)
Returns the value of attribute guard.
46 47 48 |
# File 'lib/textus/manifest/rules.rb', line 46 def guard @guard end |
#handler_allowlist ⇒ Object (readonly)
Returns the value of attribute handler_allowlist.
46 47 48 |
# File 'lib/textus/manifest/rules.rb', line 46 def handler_allowlist @handler_allowlist end |
#lifecycle ⇒ Object (readonly)
Returns the value of attribute lifecycle.
46 47 48 |
# File 'lib/textus/manifest/rules.rb', line 46 def lifecycle @lifecycle end |
#match ⇒ Object (readonly)
Returns the value of attribute match.
46 47 48 |
# File 'lib/textus/manifest/rules.rb', line 46 def match @match end |