File: path.rb

package info (click to toggle)
ruby-cairo 1.17.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,532 kB
  • sloc: ruby: 11,997; ansic: 10,183; sh: 48; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'forwardable'

module Cairo
  class Path
    extend Forwardable
    methods = %w(new_path new_sub_path move_to line_to curve_to
                 arc arc_negative rel_move_to rel_line_to rel_curve_to
                 rectangle rounded_rectangle circle)
    def_delegators :@context, *methods

    def close
      @context.close_path
    end
  end
end