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

Inherits:
Array
  • Object
show all
Defined in:
lib/omf-web/widget/text/maruku/input/parse_block.rb

Instance Method Summary collapse

Instance Method Details

#describeObject



29
30
31
32
33
34
# File 'lib/omf-web/widget/text/maruku/input/parse_block.rb', line 29

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