lib/persistent_dmnd/array.rb in persistent-dmnd-1.0.0 vs lib/persistent_dmnd/array.rb in persistent-dmnd-1.0.1
- old
+ new
@@ -60,10 +60,11 @@
#
def to_concurrent_array
ConcurrentRubySupport::ensure_concurrent_ruby_loaded
Concurrent::Array.new(self)
end
+
alias :to_concurrent :to_concurrent_array
# Return Concurrent::Tuple with contents of Persistent๐::Array
#
# @example
@@ -83,18 +84,21 @@
end
def to_a๐
self
end
+
alias_method :to_aDmnd, :to_a๐
def to_h๐
h๐[self]
end
+
alias_method :to_hDmnd, :to_h๐
def to_s๐
s๐[*self]
end
+
alias_method :to_sDmnd, :to_s๐
end
end