Class: Ellipses::Server::Meta

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#globalObject (readonly)

Returns the value of attribute global.



58
59
60
# File 'lib/ellipses/server/meta.rb', line 58

def global
  @global
end

#symbolsObject (readonly)

Returns the value of attribute symbols.



58
59
60
# File 'lib/ellipses/server/meta.rb', line 58

def symbols
  @symbols
end