Sha256: 5acb68d88d81143becc1b7ddf197c143cc832d46efefde13e6f1f08a0db21aad
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
class GlimmerKlondikeSolitaire module View class PlayingCard include Glimmer::UI::CustomShape options :card_x, :card_y, :model, :parent_pile before_body { self.card_x ||= 0 self.card_y ||= 0 } body { image { image model.hidden ? IMAGE_BACK : IMAGES[model.suit][model.rank] x card_x y card_y } } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glimmer_klondike_solitaire-1.1.0 | app/glimmer_klondike_solitaire/view/playing_card.rb |
glimmer_klondike_solitaire-1.0.1 | app/glimmer_klondike_solitaire/view/playing_card.rb |