Method: Set#add?
- Defined in:
- lib/set.rb
#add?(o) ⇒ Boolean
366 367 368 |
# File 'lib/set.rb', line 366 def add?(o) add(o) unless include?(o) end |
366 367 368 |
# File 'lib/set.rb', line 366 def add?(o) add(o) unless include?(o) end |