lib/ruby_parser/bm_sexp.rb
#Returns block of a call with a block.
#Could be a single expression or a block:
#
#    s(:iter,
#     s(:call, nil, :x, s(:arglist)),
#      s(:lasgn, :y),
#       s(:block, s(:lvar, :y), s(:call, nil, :z, s(:arglist))))
#       ^-------------------- block --------------------------^
Returns block of a call with a block.
Could be a single expression or a block.


Returns block of a call with a block . Could be a single expression or a block .
def block delete = nil
    unless delete.nil? 
      return find_node :block, delete
    end
    expect :iter, :scope, :resbody
    case self.node_type
    when :iter
      self[3]
    when :scope
      self[1]
    when :resbody
      find_node :block
    end
  end
def block delete = nil unless delete . nil? return find_node :block , delete end expect :iter , :scope , :resbody case self . node_type when :iter self [ 3 ] when :scope self [ 1 ] when :resbody find_node :block end end
Returns block of a call with a block.
Returns block of a call with a block .
#this is from RubyParser #This is for Ruby2Ruby ONLY
delete
<not_specific>