Sha256: d6cfe3b55777ce9ebf78464f11276f6037aa4a0964d562d5ced2efdc9f1dd0a4

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module AST
    class CasgnNode < Node
      include HasArguments

      alias_method :name, :second
      alias_method :to_sym, :second

      def to_s
        name.to_s
      end

      def arguments
        children[2].as_arguments_list
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/ast/casgn_node.rb
leftovers-0.12.1 lib/leftovers/ast/casgn_node.rb
leftovers-0.12.0 lib/leftovers/ast/casgn_node.rb
leftovers-0.11.2 lib/leftovers/ast/casgn_node.rb