Sha256: 3a7c18a02beda73a1f96de7e0e5c0bab72e199454539ab0d2377158fd174a307

Contents?: true

Size: 433 Bytes

Versions: 7

Compression:

Stored size: 433 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 build_using_statement(namespace)
      "using namespace #{namespace.gsub(/\./, '::')};"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
albacore-2.0.0.rc.7 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.0.rc.6 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.0.rc.5 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.0.rc.4 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.0.rc.3 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.0.rc.2 lib/albacore/task_types/asmver/cpp.rb
albacore-2.0.0.rc.1 lib/albacore/task_types/asmver/cpp.rb