Sha256: 2147ec060801464acfee9feb64580d112ed0746c8c699e883d2a4623f97da498

Contents?: true

Size: 343 Bytes

Versions: 15

Compression:

Stored size: 343 Bytes

Contents

# -*- coding: utf-8 -*-


require 'rays/ext'


module Rays


  class Font

    include Comparable

    alias w width
    alias h height

    def <=> (o)
      ret = name <=> o.name; return ret if ret != 0
            size <=> o.size
    end

    def inspect ()
      "#<Rays::Font name=#{name}, size=#{size}>"
    end

  end# Font


end# Rays

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rays-0.1.21 lib/rays/font.rb
rays-0.1.20 lib/rays/font.rb
rays-0.1.19 lib/rays/font.rb
rays-0.1.18 lib/rays/font.rb
rays-0.1.17 lib/rays/font.rb
rays-0.1.16 lib/rays/font.rb
rays-0.1.15 lib/rays/font.rb
rays-0.1.14 lib/rays/font.rb
rays-0.1.13 lib/rays/font.rb
rays-0.1.12 lib/rays/font.rb
rays-0.1.11 lib/rays/font.rb
rays-0.1.10 lib/rays/font.rb
rays-0.1.9 lib/rays/font.rb
rays-0.1.8 lib/rays/font.rb
rays-0.1.7 lib/rays/font.rb