Class: MxxRu::Cpp::RuCodeGen::Standalone

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

Overview

Description for standalone RuCodeGen script.

Instance Method Summary collapse

Methods inherited from Script

#to_s

Constructor Details

#initialize(name) ⇒ Standalone

Returns a new instance of Standalone.



84
85
86
# File 'lib/mxx_ru/cpp/rucodegen.rb', line 84

def initialize( name )
  super( name )
end

Instance Method Details

#build_cmd(mode) ⇒ Object

Returns command line for run code generation.



89
90
91
# File 'lib/mxx_ru/cpp/rucodegen.rb', line 89

def build_cmd( mode )
  "ruby -I. #{@name} --mode #{mode}"
end