Class: MaRuKu::In::Markdown::BlockLevelParser::BlockContext

Inherits:
Array
  • Object
show all
Defined in:
lib/maruku/input/parse_block.rb

Instance Method Summary collapse

Instance Method Details

#describeObject



10
11
12
13
14
15
# File 'lib/maruku/input/parse_block.rb', line 10

def describe
  n = 5
  desc = size > n ? self[-n, n] : self
  "Last #{n} elements: " +
    desc.map {|x| "\n -" + x.inspect }.join
end