Class: Ellipses::Server::Meta
- Inherits:
-
Object
- Object
- Ellipses::Server::Meta
- Defined in:
- lib/ellipses/server/meta.rb
Defined Under Namespace
Classes: Global, Symbol, Symbols
Constant Summary collapse
- Error =
Class.new Error
Instance Attribute Summary collapse
-
#global ⇒ Object
readonly
Returns the value of attribute global.
-
#symbols ⇒ Object
readonly
Returns the value of attribute symbols.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Meta
constructor
A new instance of Meta.
Constructor Details
#initialize(hash) ⇒ Meta
Returns a new instance of Meta.
60 61 62 63 64 65 66 |
# File 'lib/ellipses/server/meta.rb', line 60 def initialize(hash) symbols_array = hash.delete('symbols') || [] global_hash = hash || {} @global = Global.from_hash(global_hash) @symbols = Symbols.new(symbols_array, *(@global.depends || [])) end |
Instance Attribute Details
#global ⇒ Object (readonly)
Returns the value of attribute global.
58 59 60 |
# File 'lib/ellipses/server/meta.rb', line 58 def global @global end |
#symbols ⇒ Object (readonly)
Returns the value of attribute symbols.
58 59 60 |
# File 'lib/ellipses/server/meta.rb', line 58 def symbols @symbols end |