Class: JunitReportGenerator::Element

Inherits:
Object
  • Object
show all
Includes:
Elementary
Defined in:
lib/junit_report_generator/elements/element.rb

Instance Attribute Summary

Attributes included from Elementary

#attributes

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_nameObject



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