Class: Rna::DSL::Rule

Inherits:
Builder show all
Defined in:
lib/rna/dsl.rb

Overview

rules get processed scoed to a specific role

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#roleObject (readonly)

Returns the value of attribute role.



154
155
156
# File 'lib/rna/dsl.rb', line 154

def role
  @role
end

Instance Method Details

#nameObject



163
164
165
# File 'lib/rna/dsl.rb', line 163

def name
  @role
end