Method: CML::Parser#fields

Defined in:
lib/cml/parser.rb

#fieldsObject



80
81
82
83
84
85
86
87
# File 'lib/cml/parser.rb', line 80

def fields
  @fields = {}
  @tags.each do |g|
    agg = g.attrs["aggregation"]
    @fields[g.name] = agg.to_s if agg
  end
  @fields
end