Sha256: cdfae5affe8214b2e1045d911d762e7dd86a5f184fa8b0fef63652710f39b5df

Contents?: true

Size: 555 Bytes

Versions: 98

Compression:

Stored size: 555 Bytes

Contents

require 'albacore/task_types/asmver/engine'

module Albacore::Asmver
  class Cpp < Engine
    def initialize
      @start_token = "["
      @end_token   = "]"
      @assignment  = "="
      @statement_terminator  = ";"
    end

    def build_attribute_re(attr_name)
      /^\[assembly: #{attr_name}(.+)/  
    end

    def namespace_start ns
      "namespace #{ns.gsub /\./, '::'} {"
    end

    def namespace_end
      "}\n"
    end
    
    def build_using_statement(namespace)
      "using namespace #{namespace.gsub(/\./, '::')};"
    end

  end
end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
albacore-2.5.10 ./lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.9 ./lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.8 ./lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.6 lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.5 lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.4 lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.3 lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.2 lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.1 lib/albacore/task_types/asmver/cpp.rb
albacore-2.5.0 lib/albacore/task_types/asmver/cpp.rb
albacore-2.4.3 lib/albacore/task_types/asmver/cpp.rb
albacore-2.4.2 lib/albacore/task_types/asmver/cpp.rb
albacore-2.4.1 lib/albacore/task_types/asmver/cpp.rb
albacore-2.4.0 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.22 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.21 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.20 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.19 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.18 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.17 lib/albacore/task_types/asmver/cpp.rb