Sha256: f66dc8b6dca11ebd47790cf8183bf827ba9ff33865b68984f8243e1a514335af

Contents?: true

Size: 284 Bytes

Versions: 6

Compression:

Stored size: 284 Bytes

Contents

# Class: Proton::Meta
# Metadata.
#
# This is usually accessed via {Proton::Page.meta}.

class Proton
class Meta < OpenStruct
  def merge!(hash)
    @table.merge(hash)
  end

  # For Ruby 1.8.6 compatibility ([:type] instead of .type)
  def [](id)
    @table[id.to_sym]
  end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
proton-0.3.6 lib/proton/meta.rb
proton-0.3.5 lib/proton/meta.rb
proton-0.3.4 lib/proton/meta.rb
proton-0.3.3 lib/proton/meta.rb
proton-0.3.2 lib/proton/meta.rb
proton-0.3.0.rc1 lib/proton/meta.rb