Sha256: b0dc15e454337aabaceee4e9b2126f7d81ba54288967bef56d6a1f5a7e41339d
Contents?: true
Size: 616 Bytes
Versions: 20
Compression:
Stored size: 616 Bytes
Contents
module Squib class Deck # DSL method. See http://squib.readthedocs.io def hint(text: :off) conf.text_hint = text end # DSL method. See http://squib.readthedocs.io def set(opts = {}) raise 'DEPRECATED: As of v0.7 img_dir is no longer supported in "set". Use config.yml instead.' if opts.key? :img_dir @font = (opts[:font] == :default) ? Squib::DEFAULT_FONT : opts[:font] end # DSL method. See http://squib.readthedocs.io def use_layout(file: 'layout.yml') @layout = LayoutParser.new(@dpi).load_layout(file, @layout) end end end
Version data entries
20 entries across 20 versions & 1 rubygems