Sha256: 5c9d746cd4b16c5a8a617a396a1f086edb9439fe67452cccff9ab05c6d68073e

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

class HorizontalRule
  include Widget

  def initialize(opts={})
    @options = opts
    @options ||= {}
  end

  def show(opts={})
    show_opts = @options.merge(opts)
    slot = app.flow(:width => show_opts[:width]) do
      left = 5
      right = show_opts[:width] - 10
      app.rect(left, 0, right, 1)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
royw-shoeshine-0.0.1 lib/shoeshine/horizontal_rule.rb
royw-shoeshine-0.0.2 lib/shoeshine/horizontal_rule.rb