Sha256: 9fed8727526ac227670b87f9b5daeefff7f16113189c27d69d9beb9a848bb0a2
Contents?: true
Size: 355 Bytes
Versions: 4
Compression:
Stored size: 355 Bytes
Contents
# frozen_string_literal: true module Leftovers module AST class NumericNode < ::Leftovers::AST::Node alias_method :to_scalar_value, :first def scalar? true end def to_s to_scalar_value.to_s end alias_method :to_literal_s, :to_s def to_sym to_s.to_sym end end end end
Version data entries
4 entries across 4 versions & 1 rubygems