Sha256: e23e9783c50089484aede9d0882bc5db693ab28a74463a45af95cb052f041fd7

Contents?: true

Size: 244 Bytes

Versions: 2

Compression:

Stored size: 244 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template do |composer|
      composer.add_graph('Graph') do |_, settings|
        settings.height = 12
        10.times.map { |i| i ** 2 }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 screen_test/elements/graph.rb
whirled_peas-0.9.0 screen_test/elements/graph.rb