Method: Doku::PuzzleOnGrid::ClassMethods#template

Defined in:
lib/doku/grid.rb

#templateString (readonly)

This is a multi-line string that defines all the squares in the puzzle and the Separators to use to make the puzzle more readable in Doku::PuzzleOnGrid#to_grid_string. A period character (‘.’) represents a square. This is defined in the class by using the #has_template method.

Returns:

  • (String)

    The template string from the class definition.



63
64
65
# File 'lib/doku/grid.rb', line 63

def template
  @template
end