Class: JunitReportGenerator::Element
- Inherits:
-
Object
- Object
- JunitReportGenerator::Element
- Includes:
- Elementary
- Defined in:
- lib/junit_report_generator/elements/element.rb
Direct Known Subclasses
Error, Failure, Properties, Property, Skipped, SystemErr, SystemOut, TestCase, TestSuite, TestSuites
Instance Attribute Summary
Attributes included from Elementary
Class Method Summary collapse
Methods included from Elementary
#assemble_attributes, #method_missing, #update_attributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JunitReportGenerator::Elementary
Class Method Details
.create(*args) ⇒ Object
9 10 11 12 13 |
# File 'lib/junit_report_generator/elements/element.rb', line 9 def create(*args) obj = new(*args) obj.instance_variable_set(:@attributes, {}) unless obj.attributes obj end |
.xml_tag_name ⇒ Object
19 20 21 |
# File 'lib/junit_report_generator/elements/element.rb', line 19 def xml_tag_name fail(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |