module WahWah::TagDelegate
Public Instance Methods
tag_delegate(accessor, *attributes)
click to toggle source
Calls superclass method
# File lib/wahwah/tag_delegate.rb, line 5 def tag_delegate(accessor, *attributes) attributes.each do |attr| define_method(attr) do tag = instance_variable_get(accessor) return super() if tag.nil? tag.send(attr) end end end