lib/hyper-spec.rb in hyper-spec-1.0.alpha1.6 vs lib/hyper-spec.rb in hyper-spec-1.0.alpha1.7

- old
+ new

@@ -35,10 +35,18 @@ require 'pry' rescue LoadError nil end -Parser::Builders::Default.emit_procarg0 = true +# opt-in to most recent AST format: +Parser::Builders::Default.emit_lambda = true +Parser::Builders::Default.emit_procarg0 = true +(Parser::Builders::Default.emit_encoding = true) rescue nil +(Parser::Builders::Default.emit_index = true) rescue nil +(Parser::Builders::Default.emit_arg_inside_procarg0 = true) rescue nil +(Parser::Builders::Default.emit_forward_arg = true) rescue nil +(Parser::Builders::Default.emit_kwargs = true) rescue nil +(Parser::Builders::Default.emit_match_pattern = true) rescue nil # not available in parser 2.3 if Parser::Builders::Default.respond_to? :emit_arg_inside_procarg0 Parser::Builders::Default.emit_arg_inside_procarg0 = true end