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.2.0.pre.beta.6 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.0.pre.beta.5 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.0.pre.beta.4 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.0.pre.beta.3 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.0.pre.beta.2 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.0.pre.beta lib/albacore/task_types/asmver/cpp.rb
albacore-2.1.2 lib/albacore/task_types/asmver/cpp.rb
albacore-2.1.1 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.16 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.15 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.14 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.13 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.12 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.11 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.10 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.9 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.8 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.7 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.6 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.5 lib/albacore/task_types/asmver/cpp.rb