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

Version Path
squib-0.18.0 lib/squib/api/settings.rb
squib-0.17.2 lib/squib/api/settings.rb
squib-0.17.1 lib/squib/api/settings.rb
squib-0.17.0 lib/squib/api/settings.rb
squib-0.16.0 lib/squib/api/settings.rb
squib-0.16.0.pre.preview2 lib/squib/api/settings.rb
squib-0.16.0.pre.preview1 lib/squib/api/settings.rb
squib-0.15.3 lib/squib/api/settings.rb
squib-0.15.0 lib/squib/api/settings.rb
squib-0.14.3.pre1 lib/squib/api/settings.rb
squib-0.14.1 lib/squib/api/settings.rb
squib-0.14.0 lib/squib/api/settings.rb
squib-0.14.beta1 lib/squib/api/settings.rb
squib-0.13.4 lib/squib/api/settings.rb
squib-0.13.3 lib/squib/api/settings.rb
squib-0.13.2 lib/squib/api/settings.rb
squib-0.13.1 lib/squib/api/settings.rb
squib-0.13.0 lib/squib/api/settings.rb
squib-0.12.0 lib/squib/api/settings.rb
squib-0.11.0 lib/squib/api/settings.rb