Class: MxxRu::Cpp::RuCodeGen::Embedded

Inherits:
Script
  • Object
show all
Defined in:
lib/mxx_ru/cpp/rucodegen.rb

Overview

Description for embeded RuCodeGen script.

Instance Method Summary collapse

Methods inherited from Script

#to_s

Constructor Details

#initialize(name) ⇒ Embedded

Returns a new instance of Embedded.



96
97
98
# File 'lib/mxx_ru/cpp/rucodegen.rb', line 96

def initialize( name )
  super( name )
end

Instance Method Details

#build_cmd(mode) ⇒ Object

Returns command line for run code generation.



101
102
103
104
# File 'lib/mxx_ru/cpp/rucodegen.rb', line 101

def build_cmd( mode )
  "ruby -I. -e\"require 'rubygems'; gem 'RuCodeGen'; require 'rucodegen'; " +
    "process_embedded_rucodegen('#{@name}',:#{mode})\""
end