Class: Set

Inherits:
Object
  • Object
show all
Defined in:
lib/defmastership/set_join_hack.rb

Overview

Ruby 2.7 do not implement join for Set

Instance Method Summary collapse

Instance Method Details

#join(*args) ⇒ String

Returns join value of the set elements.

Parameters:

  • args (String)

    the separator (default: ”)

Returns:

  • (String)

    join value of the set elements



9
10
11
# File 'lib/defmastership/set_join_hack.rb', line 9

def join(*args)
  to_a.join(*args)
end