Sha256: aadd81d23fd0d3a1c8a1d0ad5a3540cf3113f3b85f2c48e06e3b968e007aeacc
Contents?: true
Size: 538 Bytes
Versions: 14
Compression:
Stored size: 538 Bytes
Contents
module Almodovar class ResourcePresenter module Metadata def inherited(base) base.metadata[:name] = base.name.demodulize.titleize end def desc(description) metadata[:desc] = description end def link(name, options) metadata[:links][name] = options end def attribute(name, options) metadata[:attributes][name] = options end def metadata @metadata ||= Hash.new {|h,a| h[a] = ActiveSupport::OrderedHash.new} end end end end
Version data entries
14 entries across 14 versions & 2 rubygems