class Markdownplus::Block

Attributes

block_number[R]

Public Class Methods

new(block_number) click to toggle source
# File lib/markdownplus/parser.rb, line 105
def initialize(block_number)
  @block_number = block_number
end

Public Instance Methods

append(line) click to toggle source
# File lib/markdownplus/parser.rb, line 120
def append(line)
  self.input += "#{line}\n"
end
errors() click to toggle source
# File lib/markdownplus/parser.rb, line 124
def errors
  @errors ||= []
end
input() click to toggle source
# File lib/markdownplus/parser.rb, line 109
def input
  @input ||= ""
end
input=(value) click to toggle source
# File lib/markdownplus/parser.rb, line 112
def input=(value)
  @input = value
end
lines() click to toggle source
# File lib/markdownplus/parser.rb, line 116
def lines
  self.input.split("\n")
end
warnings() click to toggle source
# File lib/markdownplus/parser.rb, line 128
def warnings
  @warnings ||= []
end