class Albacore::Asmver::Cpp

Public Class Methods

new() click to toggle source
# File lib/albacore/task_types/asmver/cpp.rb, line 5
def initialize
  @start_token = "["
  @end_token   = "]"
  @assignment  = "="
  @statement_terminator  = ";"
end

Public Instance Methods

build_attribute_re(attr_name) click to toggle source
# File lib/albacore/task_types/asmver/cpp.rb, line 12
def build_attribute_re(attr_name)
  /^\[assembly: #{attr_name}(.+)/  
end
build_using_statement(namespace) click to toggle source
# File lib/albacore/task_types/asmver/cpp.rb, line 24
def build_using_statement(namespace)
  "using namespace #{namespace.gsub(/\./, '::')};"
end
namespace_end() click to toggle source
# File lib/albacore/task_types/asmver/cpp.rb, line 20
def namespace_end
  "}\n"
end
namespace_start(ns) click to toggle source
# File lib/albacore/task_types/asmver/cpp.rb, line 16
def namespace_start ns
  "namespace #{ns.gsub /\./, '::'} {"
end