Sha256: b57bd545f5f8872e3f5ba299a7d118037d9dc132bd143db54d73264e677837b8

Contents?: true

Size: 378 Bytes

Versions: 4

Compression:

Stored size: 378 Bytes

Contents

require 'albacore/assemblyinfolanguages/assemblyinfoengine'

class CppCliEngine < AssemblyInfoEngine
  def initialize
    @start_token = "["
    @end_token   = "]"
    @assignment  = "="
  end

  def build_attribute_re(attr_name)
    /^\[assembly: #{attr_name}(.+)/  
  end
  
  def build_using_statement(namespace)
    "using namespace #{namespace.gsub(/\./, '::')};"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
albacore-0.3.3 lib/albacore/assemblyinfolanguages/cppcliengine.rb
albacore-0.3.2 lib/albacore/assemblyinfolanguages/cppcliengine.rb
albacore-0.3.1 lib/albacore/assemblyinfolanguages/cppcliengine.rb
albacore-0.3.0 lib/albacore/assemblyinfolanguages/cppcliengine.rb