Class: Pangrid::ExolveBlank

Inherits:
Plugin
  • Object
show all
Includes:
ExolveWriter
Defined in:
lib/pangrid/plugins/exolve.rb

Constant Summary collapse

DESCRIPTION =
"Exolve writer without solutions"

Constants inherited from Plugin

Plugin::FAILED, Plugin::MISSING_DEPS, Plugin::REGISTRY

Instance Method Summary collapse

Methods included from ExolveWriter

#format_clues, #format_headers, #indent, #write

Methods inherited from Plugin

class_to_name, get, inherited, list_all, load_all, load_plugin

Methods included from PluginUtils

#check

Instance Method Details

#format_grid(xw) ⇒ Object



123
124
125
# File 'lib/pangrid/plugins/exolve.rb', line 123

def format_grid(xw)
  xw.to_array(:black => '.', :null => '0') {|c| 0}.map(&:join)
end