Sha256: 011a4f988de093e03577b80070e4c6a2d054e4ec2352ffd77c71d87b40332f9a

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

class ASTree::PrettyNode::ARGS < ASTree::PrettyNode
  def label_name(index)
    case index
    when 0
      'pre_num'
    when 1
      'pre_init'
    when 2
      'opt'
    when 3
      'first_post'
    when 4
      'post_num'
    when 5
      'post_init'
    when 6
      'rest'
    when 7
      'kw'
    when 8
      'kwrest'
    when 9
      'block'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
astree-1.1.1 lib/astree/pretty_node/args.rb
astree-1.1.0 lib/astree/pretty_node/args.rb