Sha256: 26549776b9fc9f2b597fe7599d745d988e65b3312f027f29b0790aa77de3f86f
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
module Metamagic class Tag attr_reader :context, :key, :value def initialize(context, key, value) @context, @key, @value = context, key, value end def to_html raise "#{self.class.name}#to_html must be overridden to render tag" end def method_missing(*args) context.send(*args) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metamagic-3.0.0.beta2 | lib/metamagic/tag.rb |
metamagic-3.0.0.beta1 | lib/metamagic/tag.rb |