Module: YDocx::MarkupMethod

Included in:
Builder, Parser
Defined in:
lib/ydocx/markup_method.rb

Instance Method Summary collapse

Instance Method Details

#markup(tag, content = [], attributes = {}) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/ydocx/markup_method.rb', line 6

def markup(tag, content = [], attributes = {})
  tag_hash = {
    :tag        => tag,
    :content    => content,
    :attributes => attributes
  }
  tag_hash
end