elpa/enh-ruby-mode/ruby/erm_buffer.rb
def check_syntax fname = '', code = @buffer
    $VERBOSE = true
    # eval but do not run code
    eval "BEGIN{return}\n#{code}", nil, fname, 0
  rescue SyntaxError
    $!.message
  rescue
    # do nothing
  ensure
    $VERBOSE = nil
  end
# verify that this is used in erm.rb. I don't know how to trigger it. & args??
verify that this is used in erm.rb. I don't know how to trigger it.
verify that this is used in erm . rb . I don ' t know how to trigger it .
def check_syntax fname = '', code = @buffer
    $VERBOSE = true
    eval "BEGIN{return}\n#{code}", nil, fname, 0
  rescue SyntaxError
    $!.message
  rescue
  ensure
    $VERBOSE = nil
  end
def check_syntax fname = '' , code = @buffer $VERBOSE = true eval "BEGIN{return}\n#{code}" , nil , fname , 0 rescue SyntaxError $! . message rescue ensure $VERBOSE = nil end
verify that this is used in erm.rb.
verify that this is used in erm . rb .
# eval but do not run code # do nothing
fname
code