Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.378 kB
require 'clock_hands'
class ClockSkin
attr_accessor :name, :hands
def initialize(path = "skins", options = {})
self.name = options['name']
self.hands = []
if options['hands']
options['hands'].each_with_index do |hand, zlevel|
hands << eval(hand.capitalize+"Hand").new($window, File.join(path, self.name, hand+".png"), zlevel)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.