Class: Squared::Common::SymSet
- Inherits:
-
Object
- Object
- Squared::Common::SymSet
- Extended by:
- Forwardable
- Defined in:
- lib/squared/common/class.rb
Class Method Summary collapse
Instance Method Summary collapse
- #add(val) ⇒ Object
-
#initialize(data = []) ⇒ SymSet
constructor
A new instance of SymSet.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(data = []) ⇒ SymSet
Returns a new instance of SymSet.
17 18 19 |
# File 'lib/squared/common/class.rb', line 17 def initialize(data = []) @data = Set.new(data) end |
Class Method Details
.to_s ⇒ Object
11 12 13 |
# File 'lib/squared/common/class.rb', line 11 def self.to_s super[/[^:]+\z/, 0] end |