Class: Rcodetools::XMPRSpecFilter
- Inherits:
-
XMPTestUnitFilter
- Object
- XMPFilter
- XMPTestUnitFilter
- Rcodetools::XMPRSpecFilter
- Defined in:
- lib/rcodetools/xmptestunitfilter.rb
Defined Under Namespace
Constant Summary
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
-
#initialize(x = {}) ⇒ XMPRSpecFilter
constructor
A new instance of XMPRSpecFilter.
Methods inherited from XMPFilter
#add_markers, #annotate, #annotated_line, #annotated_multi_line, #common_path, #debugprint, detect_rbtest, #execute_popen, #execute_ruby, #execute_script, #execute_tmpfile, #extract_data, #final_decoration, #get_test_method_from_lineno, #initialize_for_test_script, #initialize_rbtest, #initialize_rct_fork, #oneline_ize, #prepare_line_annotation, run, #windows?
Constructor Details
#initialize(x = {}) ⇒ XMPRSpecFilter
Returns a new instance of XMPRSpecFilter.
123 124 125 126 127 128 129 130 131 |
# File 'lib/rcodetools/xmptestunitfilter.rb', line 123 def initialize(x={}) super(x.merge(:_no_extend_module => true)) load_rspec specver = (Spec::VERSION::STRING rescue "1.0.0") api_module = specver >= "0.8.0" ? NewAPI : OldAPI mod = @parentheses ? :WithParentheses : :Poetry extend api_module.const_get(mod) extend api_module end |