Sha256: 0c5ff9552d6451fc1f52defd2162281c1280026fb7ecc10c96abf4bca9ea69c3

Contents?: true

Size: 259 Bytes

Versions: 4

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module AST
    class DefsNode < Node
      alias_method :name, :second
      alias_method :to_sym, :second

      def to_s
        name.to_s
      end
      alias_method :to_literal_s, :to_s
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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