Sha256: 6182a61da00552097b5d2c18df242de0829462c009d9eb4c20932c871d9fa34f

Contents?: true

Size: 428 Bytes

Versions: 32

Compression:

Stored size: 428 Bytes

Contents

require "fiona7/obj_class_name_mangler"

module Fiona7
  class AttributeNameMangler
    def initialize(attribute, obj_class)
      @attribute = attribute
      @obj_class = obj_class
    end

    def mangle
      if Fiona7.mode == :standalone
        mangled_obj_class = Fiona7::ObjClassNameMangler.new(@obj_class).mangle
        "s_#{mangled_obj_class}__#{@attribute}"
      else
        @attribute
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
infopark_fiona7-1.2.0.0.0 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.9 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.8 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.7 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.6 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.5 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.4 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.3 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.2 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.10 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.1 lib/fiona7/attribute_name_mangler.rb
infopark_fiona7-1.1.0.0.0 lib/fiona7/attribute_name_mangler.rb