Sha256: 8894f9867a50a04ed099a1f6a01497c43798a5b7635e4a4a3b77b713770b8f24

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

module Straightedge
  # TODO something with this
  class Presenter
    extend Forwardable
    #def_delegators :location, :x, :y

    def on(surface)
      @surface = surface
      self
    end

    #def at(p)
    #  @location = p
    #  self 
    #end

    def display(figure)
      raise 'implement in subclass'
    end

    #def location
    #  @location ||= [0,0]
    #end

    #def color(figure)
    #  @color ||= 0xEFEFEFEF
    #end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
straightedge-0.1.1 lib/straightedge/presenter.rb