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.3.16 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.15 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.14 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.13 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.12 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.11 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.10 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.9 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.8 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.7 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.6 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.5 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.4 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.3 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.2 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.1 lib/albacore/task_types/asmver/cpp.rb
albacore-2.3.0 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.1 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.0 lib/albacore/task_types/asmver/cpp.rb
albacore-2.2.0.pre.beta.7 lib/albacore/task_types/asmver/cpp.rb