Sha256: 5dbefdccb084981cd0bb7856366dbb8b916af22ee861762bb605b2928fe6055a

Contents?: true

Size: 524 Bytes

Versions: 21

Compression:

Stored size: 524 Bytes

Contents

require "fiona7/type_register"
require "fiona7/obj_classes_from_cms"
require "fiona7/attribute_name_mangler"

module Fiona7
  class AttributeNamesFromCms
    def initialize(attribute, type_register=Fiona7::TypeRegister.instance)
      @attribute = attribute
      @type_register = type_register
    end

    def attributes
      obj_classes = Fiona7::ObjClassesFromCms.new(@type_register).obj_classes
      obj_classes.map {|obj_class| Fiona7::AttributeNameMangler.new(@attribute, obj_class).mangle }.uniq
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
infopark_fiona7-1.2.0.2.3 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.2.0.2.1 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.2.0.2.2 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.2.0.1.4 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.2.0.1.3 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.5.2.1.0.pre.beta1 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.5.2.0.0 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.2.0.1.1 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.2.0.0.1 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.2.0.0.0 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.9 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.8 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.7 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.6 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.5 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.4 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.3 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.2 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.10 lib/fiona7/attribute_names_from_cms.rb
infopark_fiona7-1.1.0.0.1 lib/fiona7/attribute_names_from_cms.rb