Class: Rna::DSL::Rule
Overview
rules get processed scoed to a specific role
Instance Attribute Summary collapse
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(role, block) ⇒ Rule
constructor
A new instance of Rule.
- #name ⇒ Object
Methods inherited from Builder
#build, #node, #role_list, #run_list, #settings
Constructor Details
#initialize(role, block) ⇒ Rule
Returns a new instance of Rule.
155 156 157 158 159 160 161 |
# File 'lib/rna/dsl.rb', line 155 def initialize(role, block) @role = role @block = block @data = { :attributes => {} } end |
Instance Attribute Details
#role ⇒ Object (readonly)
Returns the value of attribute role.
154 155 156 |
# File 'lib/rna/dsl.rb', line 154 def role @role end |
Instance Method Details
#name ⇒ Object
163 164 165 |
# File 'lib/rna/dsl.rb', line 163 def name @role end |