Method: Montoc::DocBox#initialize

Defined in:
lib/montoc.rb

#initialize(text = "") {|_self| ... } ⇒ DocBox

Returns a new instance of DocBox.

Yields:

  • (_self)

Yield Parameters:



10
11
12
13
14
15
# File 'lib/montoc.rb', line 10

def initialize text = ""
	@text = text
	@format = :virgin
	yield self if block_given?
	DocBox.know self
end