class MCMarkdown::Parser::BlockTag::Block
Attributes
attributes[R]
orig[R]
type[R]
Public Class Methods
close_block()
click to toggle source
# File lib/mc_markdown/parsers/block_tag.rb, line 31 def close_block / (?:#{open_tag})? #{repeated_spaces} \{\{\/(.+?)\}\} (?:#{close_tag})? /x end
close_tag()
click to toggle source
# File lib/mc_markdown/parsers/block_tag.rb, line 39 def close_tag / < (?:\/) (?:\w+?) > /x end
new(content)
click to toggle source
# File lib/mc_markdown/parsers/block_tag.rb, line 55 def initialize content @orig = content end
open_block()
click to toggle source
# File lib/mc_markdown/parsers/block_tag.rb, line 27 def open_block / (?:#{open_tag})? \{\{(.+?)\}\} #{repeated_spaces} (?:#{close_tag})? /x end
open_tag()
click to toggle source
# File lib/mc_markdown/parsers/block_tag.rb, line 35 def open_tag / < (?:\w+?) > /x end
pattern()
click to toggle source
# File lib/mc_markdown/parsers/block_tag.rb, line 23 def pattern / #{open_block} (.*?) #{close_block} /xm end
Private Class Methods
repeated_spaces()
click to toggle source
# File lib/mc_markdown/parsers/block_tag.rb, line 45 def repeated_spaces / (?:[\s\t]*) /x end