Sha256: bec2107d9be85551c0a011d675dbd3b0edd2e3d18065c1bd72dce3e871b0cc17

Contents?: true

Size: 169 Bytes

Versions: 2

Compression:

Stored size: 169 Bytes

Contents

class ASTree::PrettyNode::IF < ASTree::PrettyNode
  def label_name(index)
    case index
    when 1
      'then clause'
    when 2
      'else clause'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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