Sha256: ad433ffd995f53b0fe2bdb740e7d924593d35d7118cc2f18e9dd7d8cabfcfe3b

Contents?: true

Size: 234 Bytes

Versions: 4

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module AST
    class VarNode < ::Leftovers::AST::Node
      alias_method :name, :first
      alias_method :to_sym, :first

      def to_s
        name.to_s
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
leftovers-0.11.1 lib/leftovers/ast/var_node.rb
leftovers-0.11.0 lib/leftovers/ast/var_node.rb
leftovers-0.10.0 lib/leftovers/ast/var_node.rb
leftovers-0.9.0 lib/leftovers/ast/var_node.rb