class DeepCover::Node::Optarg
Public Instance Methods
executable?()
click to toggle source
# File lib/deep_cover/node/arguments.rb, line 40 def executable? false end
rewrite_default()
click to toggle source
Default child rewriting rule
# File lib/deep_cover/node/arguments.rb, line 29 def rewrite_default if parent.children.size >= 32 && RUBY_VERSION >= '2.3' && RUBY_VERSION < '2.6' # Workaround for Ruby bugs when too many default arguments are present # This will ignore some cases which would not create issues, but its rare enough to have # 32 arguments to a method that I don't care. # https://github.com/deep-cover/deep-cover/issues/47#issuecomment-477176061 return end '(%{default_tracker};%{node})' end