Skip to content

Commit

Permalink
update rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
youpy committed May 24, 2010
1 parent 92185a1 commit 923d6d5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 37 deletions.
34 changes: 28 additions & 6 deletions README.rdoc
Expand Up @@ -9,12 +9,34 @@ http://buycheapviagraonlinenow.com/files/hello.png
require 'ubygems'
require 'pimento'

c = Pimento::Canvas.new(0, 0, 300, 200)

c.point(20, 20)
c.line(100, 20, 100, 180)

c.to_xml.save('foo.xib')
c = Pimento::Canvas.new(0, 0, 620, 200)

# H
c.line_with_dots(20, 20, 20, 180)
c.line_with_dots(20, 100, 100, 100)
c.line_with_dots(100, 20, 100, 180)

# E
c.line(140, 20, 140, 180)
c.line(140, 20, 220, 20)
c.line(140, 100, 220, 100)
c.line(140, 180, 220, 180)

# L
c.line(260, 20, 260, 180)
c.line(260, 180, 340, 180)

# L
c.line(380, 20, 380, 180)
c.line(380, 180, 460, 180)

# O
c.line(500, 20, 500, 180)
c.line(500, 20, 580, 20)
c.line(500, 180, 580, 180)
c.line(580, 20, 580, 180)

c.to_xml.save('hello.xib')

# open foo.xib with Interface Builder

Expand Down
31 changes: 0 additions & 31 deletions examples/hello.rb

This file was deleted.

0 comments on commit 923d6d5

Please sign in to comment.