Sha256: 4514ad1d7f481b77780b591eb7a13b4184d83083c5ae1f9c24ddb4a881fb4c84

Contents?: true

Size: 315 Bytes

Versions: 12

Compression:

Stored size: 315 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
rays-0.1.47 lib/rays/font.rb
rays-0.1.46 lib/rays/font.rb
rays-0.1.45 lib/rays/font.rb
rays-0.1.44 lib/rays/font.rb
rays-0.1.43 lib/rays/font.rb
rays-0.1.42 lib/rays/font.rb
rays-0.1.40 lib/rays/font.rb
rays-0.1.39 lib/rays/font.rb
rays-0.1.38 lib/rays/font.rb
rays-0.1.37 lib/rays/font.rb
rays-0.1.36 lib/rays/font.rb
rays-0.1.35 lib/rays/font.rb