Sha256: 248fab792a6d08eb3ca8b0a8077b773bf03b04b4ee71769fe25de6de5bb1c4df

Contents?: true

Size: 398 Bytes

Versions: 7

Compression:

Stored size: 398 Bytes

Contents

require "metamorpher/builders/ast"
require "metamorpher/builders/ruby/uppercase_rewriter"

module Metamorpher
  module Builders
    module Ruby
      class UppercaseConstantRewriter < UppercaseRewriter
        include Metamorpher::Rewriter
        include Metamorpher::Builders::AST

        def pattern
          builder.const(builder.literal!(nil), super)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metamorpher-0.2.6 lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
metamorpher-0.2.5 lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
metamorpher-0.2.4 lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
metamorpher-0.2.3 lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
metamorpher-0.2.2 lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
metamorpher-0.2.1 lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
metamorpher-0.2.0 lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb