Sha256: 67cdcc30b1dd2494ac415d884a78b50d46eb11473e5793c1423dd9729893927b
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
module Nanoc class Page def initialize(a_hash={}) @attributes = a_hash end def [](a_key) @attributes[a_key] end def []=(a_key, a_value) @attributes[a_key] = a_value end def merge(a_other) @attributes.merge(a_other.to_hash) self end def to_hash @attributes end def method_missing(a_method, *a_args) @attributes[a_method.to_sym] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-1.3 | lib/page.rb |
nanoc-1.3.1 | lib/page.rb |
nanoc-1.2 | lib/page.rb |