Skip to content

Commit ff738a1

Browse files
committed
Add signature for Set#join
1 parent 5139079 commit ff738a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/set.rbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,15 @@ class Set[unchecked out A]
647647
# Set[1, 'c', :s].to_a #=> [1, "c", :s]
648648
#
649649
def to_a: () -> Array[A]
650+
651+
# <!--
652+
# rdoc-file=lib/set.rb
653+
# - join(separator=nil)
654+
# -->
655+
# Returns a string created by converting each element of the set to a string
656+
# See also: Array#join
657+
#
658+
def join: (?string separator) -> String
650659
end
651660

652661
%a{annotate:rdoc:skip}

0 commit comments

Comments
 (0)