Sha256: b8ef5bb081af978f46c8eac9655bd06aa461fa87e4a8713d40db34b25384e9d2

Contents?: true

Size: 332 Bytes

Versions: 6

Compression:

Stored size: 332 Bytes

Contents

require 'squib'

Squib::Deck.new(cards: 2) do
  background color: :white

  # Outputs a hash of arrays with the header names as keys
  data = yaml file: 'sample.yaml'
  text str: data['Type'], x: 250, y: 55, font: 'Arial 18'
  text str: data['Level'], x: 65, y: 65, font: 'Arial 24'

  save format: :png, prefix: 'sample_yaml_'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
squib-0.19.0 samples/data/_yaml.rb
squib-0.19.0b samples/data/_yaml.rb
squib-0.19.0a samples/data/_yaml.rb
squib-0.15.2 samples/data/_yaml.rb
squib-0.15.1 samples/data/_yaml.rb
squib-0.14.2 samples/data/_yaml.rb