Sha256: 8ccd87923a9a23607078f7b0e1b0d60cac123c9a50afcf25923cab484345ce0b

Contents?: true

Size: 595 Bytes

Versions: 6

Compression:

Stored size: 595 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

6 entries across 6 versions & 1 rubygems

Version Path
squib-0.19.0 lib/squib/api/settings.rb
squib-0.19.0b lib/squib/api/settings.rb
squib-0.19.0a lib/squib/api/settings.rb
squib-0.15.2 lib/squib/api/settings.rb
squib-0.15.1 lib/squib/api/settings.rb
squib-0.14.2 lib/squib/api/settings.rb