Sha256: 26fee6d764764e93e4ecd01dbf70b83e1ca812af701dfef069146b7d4dfbebb8

Contents?: true

Size: 341 Bytes

Versions: 13

Compression:

Stored size: 341 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

13 entries across 13 versions & 1 rubygems

Version Path
rays-0.1.34 lib/rays/font.rb
rays-0.1.33 lib/rays/font.rb
rays-0.1.32 lib/rays/font.rb
rays-0.1.31 lib/rays/font.rb
rays-0.1.30 lib/rays/font.rb
rays-0.1.29 lib/rays/font.rb
rays-0.1.28 lib/rays/font.rb
rays-0.1.27 lib/rays/font.rb
rays-0.1.26 lib/rays/font.rb
rays-0.1.25 lib/rays/font.rb
rays-0.1.24 lib/rays/font.rb
rays-0.1.23 lib/rays/font.rb
rays-0.1.22 lib/rays/font.rb