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