Class: FCSHD::Compiler
- Inherits:
-
Object
- Object
- FCSHD::Compiler
- Defined in:
- lib/fcshd/compiler.rb
Defined Under Namespace
Classes: FCSHError
Instance Attribute Summary collapse
-
#sdk_version ⇒ Object
readonly
Returns the value of attribute sdk_version.
Instance Method Summary collapse
- #compile!(command, frontend) ⇒ Object
-
#initialize(logger) ⇒ Compiler
constructor
A new instance of Compiler.
- #restart! ⇒ Object
- #start! ⇒ Object
Constructor Details
#initialize(logger) ⇒ Compiler
Returns a new instance of Compiler.
6 7 8 9 10 |
# File 'lib/fcshd/compiler.rb', line 6 def initialize(logger) @logger = logger @output_buffer = "" @command_ids = {} end |
Instance Attribute Details
#sdk_version ⇒ Object (readonly)
Returns the value of attribute sdk_version.
4 5 6 |
# File 'lib/fcshd/compiler.rb', line 4 def sdk_version @sdk_version end |
Instance Method Details
#compile!(command, frontend) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fcshd/compiler.rb', line 15 def compile! command, frontend @command, @frontend = command, frontend log_horizontal_line if have_command_id? recompile! else compile_new! end end |
#restart! ⇒ Object
13 |
# File 'lib/fcshd/compiler.rb', line 13 def restart!; restart_fcsh_process! end |
#start! ⇒ Object
12 |
# File 'lib/fcshd/compiler.rb', line 12 def start!; restart_fcsh_process! end |