blob: 469fd7565055c89ea6cdd4c90a2e25ce3334602d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class HTMLElement
def initialize(tag_name, content = nil, options = nil)
@tag_name = tag_name
@content = content
@options = options
end
def to_html(options = {})
ApplicationController.helpers.content_tag(
@tag_name,
@content,
@options.merge(options)
)
end
end
|