Class: Ellipses::Server::Meta::Symbols
- Inherits:
-
Object
- Object
- Ellipses::Server::Meta::Symbols
- Extended by:
- Forwardable
- Defined in:
- lib/ellipses/server/meta.rb
Instance Attribute Summary collapse
-
#symbols ⇒ Object
readonly
Returns the value of attribute symbols.
Instance Method Summary collapse
-
#initialize(symbols, *depends) ⇒ Symbols
constructor
A new instance of Symbols.
Constructor Details
#initialize(symbols, *depends) ⇒ Symbols
Returns a new instance of Symbols.
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/ellipses/server/meta.rb', line 46 def initialize(symbols, *depends) hash = {} (symbols || []).each do || symbol = Symbol.from_hash_with_depends(, *depends) hash[symbol.to_s] = symbol end @symbols = hash.values end |
Instance Attribute Details
#symbols ⇒ Object (readonly)
Returns the value of attribute symbols.
44 45 46 |
# File 'lib/ellipses/server/meta.rb', line 44 def symbols @symbols end |