Class: REXML::Element
- Inherits:
-
Object
- Object
- REXML::Element
- Defined in:
- lib/buildmaster/site/templatelets.rb
Instance Method Summary collapse
Instance Method Details
#attribute_value(name) ⇒ Object
20 21 22 |
# File 'lib/buildmaster/site/templatelets.rb', line 20 def attribute_value(name) return attributes[name] end |
#attribute_value!(name) ⇒ Object
14 15 16 17 18 |
# File 'lib/buildmaster/site/templatelets.rb', line 14 def attribute_value!(name) value = attribute_value(name) raise BuildMaster::TemplateError.new(self), "attribute #{name} not found" unless value return value end |