Method: Emfrp::Interpreter#exec_embedded_commands
- Defined in:
- lib/emfrp/interpreter/interpreter.rb
#exec_embedded_commands(only_on_main_path = false) ⇒ Object
-> true-like(abnormal-term) / false-like(normal-term)
100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/emfrp/interpreter/interpreter.rb', line 100 def (only_on_main_path=false) # @top[:commands].any? do |com| if !only_on_main_path || com[:file_name] == @file_loader.loaded_full_path(@main_path) unless process_repl_line(com[:command_str]) nil else puts "Embedded command on #{com[:file_name]}:#{com[:line_number]}\n" true end else nil end end end |