Sha256: e3978d81700521075d38d46bd4e64e1049961f3f838ae19fdd044e6551e594ac
Contents?: true
Size: 215 Bytes
Versions: 29
Compression:
Stored size: 215 Bytes
Contents
module MarkupHelper def mu(object, method) handler = object.send(method) erb_string = ::ERB.new(object[method.to_sym].to_s, 0).result(binding) handler.class.new(erb_string).to_html.html_safe end end
Version data entries
29 entries across 29 versions & 3 rubygems