Class: Hyde::Meta

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/hyde/meta.rb

Instance Method Summary collapse

Instance Method Details

#[](id) ⇒ Object

For Ruby 1.8.6 compatibility ([:type] instead of .type)



13
14
15
# File 'lib/hyde/meta.rb', line 13

def [](id)
  @table[id.to_sym]
end

#merge!(hash) ⇒ Object



8
9
10
# File 'lib/hyde/meta.rb', line 8

def merge!(hash)
  @table.merge(hash)
end