Sha256: 1efd1ca3e73c688c060b997634aa2ffa4709045098f4a04311b7c89bf0339ed4

Contents?: true

Size: 344 Bytes

Versions: 13

Compression:

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

13 entries across 13 versions & 1 rubygems

Version Path
squib-0.18.0 samples/data/_yaml.rb
squib-0.17.2 samples/data/_yaml.rb
squib-0.17.1 samples/data/_yaml.rb
squib-0.17.0 samples/data/_yaml.rb
squib-0.16.0 samples/data/_yaml.rb
squib-0.16.0.pre.preview2 samples/data/_yaml.rb
squib-0.16.0.pre.preview1 samples/data/_yaml.rb
squib-0.15.3 samples/data/_yaml.rb
squib-0.15.0 samples/data/_yaml.rb
squib-0.14.3.pre1 samples/data/_yaml.rb
squib-0.14.1 samples/data/_yaml.rb
squib-0.14.0 samples/data/_yaml.rb
squib-0.14.beta1 samples/data/_yaml.rb