Class: Textus::Manifest::Rules::Block
- Inherits:
-
Object
- Object
- Textus::Manifest::Rules::Block
- Defined in:
- lib/textus/manifest/rules.rb
Instance Method Summary collapse
-
#initialize(raw) ⇒ Block
constructor
A new instance of Block.
Constructor Details
#initialize(raw) ⇒ Block
Returns a new instance of Block.
49 50 51 52 53 54 |
# File 'lib/textus/manifest/rules.rb', line 49 def initialize(raw) @match = raw["match"] or raise Textus::UsageError.new("rule block missing match:") Schema::FIELD_REGISTRY.each do |field, | instance_variable_set("@#{field}", parse_field(, raw[[:yaml_key]])) end end |