Class: Rcodetools::XMPRiEmacsFilter

Inherits:
XMPDocFilter show all
Defined in:
lib/rcodetools/doc.rb

Constant Summary

Constants included from ProcessParticularLine

ProcessParticularLine::OPERATOR_CHARS

Constants inherited from XMPFilter

Rcodetools::XMPFilter::INITIALIZE_OPTS, Rcodetools::XMPFilter::INTERPRETER_FORK, Rcodetools::XMPFilter::INTERPRETER_RBTEST, Rcodetools::XMPFilter::INTERPRETER_RUBY, Rcodetools::XMPFilter::MARKER, Rcodetools::XMPFilter::MULTI_LINE_RE, Rcodetools::XMPFilter::SINGLE_LINE_RE, Rcodetools::XMPFilter::VAR, Rcodetools::XMPFilter::VERSION, Rcodetools::XMPFilter::WARNING_RE, Rcodetools::XMPFilter::XMP_RE

Instance Method Summary collapse

Methods inherited from XMPDocFilter

#__prepare_line, #_doc, #initialize, #prepare_line, run

Methods included from ProcessParticularLine

#__magic_help_code, #_handle_brackets, #_handle_do_end, #_handle_keywords, #add_BEGIN, #aref_or_aset?, #current_phrase, #fill_literal!, #runtime_data, #runtime_data_with_class, #set_expr_and_postfix!, #set_last_word!

Methods inherited from XMPFilter

#add_markers, #annotate, #annotated_line, #annotated_multi_line, #common_path, #debugprint, detect_rbtest, #execute, #execute_popen, #execute_ruby, #execute_script, #execute_tmpfile, #extract_data, #final_decoration, #get_test_method_from_lineno, #initialize, #initialize_for_test_script, #initialize_rbtest, #initialize_rct_fork, #interpreter_command, #oneline_ize, #prepare_line_annotation, run, #windows?

Constructor Details

This class inherits a constructor from Rcodetools::XMPDocFilter

Instance Method Details

#doc(code, lineno, column = nil) ⇒ Object



149
150
151
152
153
154
155
# File 'lib/rcodetools/doc.rb', line 149

def doc(code, lineno, column=nil)
  begin 
    %!(rct-find-tag-or-ri "#{super}")!
  rescue Exception => err
    return %Q[(error "#{err.message}")]
  end
end