class WsdlMapper::DomGeneration::DocumentedEnumGenerator
Protected Instance Methods
generate_constant_assignments(f, values_to_generate)
click to toggle source
# File lib/wsdl_mapper/dom_generation/documented_enum_generator.rb, line 9 def generate_constant_assignments(f, values_to_generate) yard = WsdlMapper::Generation::YardDocFormatter.new f values_to_generate.each do |vtg| if vtg.type.documentation.present? yard.text vtg.type.documentation.default yard.blank_line end yard.tag 'xml_value', vtg.type.value f.statement value_constant_assignment vtg f.blank_line end f.after_constants end
in_class(f, ttg)
click to toggle source
Calls superclass method
WsdlMapper::DomGeneration::DefaultEnumGenerator#in_class
# File lib/wsdl_mapper/dom_generation/documented_enum_generator.rb, line 23 def in_class(f, ttg) yard = WsdlMapper::Generation::YardDocFormatter.new f yard.class_doc ttg.type super end