Sha256: bb2489d52692b7a64a85d2495fdf813906a1b2743d12fd76a73740fe6c177ffc
Contents?: true
Size: 382 Bytes
Versions: 12
Compression:
Stored size: 382 Bytes
Contents
module Orthor module MetaData [ :keywords, :description ].each do |sym| class_eval %{ def #{sym}(*val) if val.empty? if @#{sym}.nil? Orthor::Site.#{sym} else @#{sym} end else @#{sym} = val.size == 1 ? val[0] : val end end } end end end
Version data entries
12 entries across 12 versions & 1 rubygems