Open Blocks

The most versatile block of all is the open block.

Open block syntax

Open block syntax
--
An open block can be an anonymous container,
or it can masquerade as any other block.
--
Result: Open block

An open block can be an anonymous container, or it can masquerade as any other block.

An open block can act as any other block, with the exception of pass and table. Here’s an example of an open block acting as a sidebar.

Open block masquerading as a sidebar syntax
[sidebar]
.Related information
--
This is aside text.

It is used to present information related to the main content.
--
Result: Open block masquerading as a sidebar
Related information

This is aside text.

It is used to present information related to the main content.

This is an open block acting as a source block.

Open block masquerading as a source block syntax
[source]
--
puts "I'm a source block!"
--
Result: Open block masquerading as a source block
puts "I'm a source block!"