Class: Rediscover::Icon
- Inherits:
-
Wx::Icon
- Object
- Wx::Icon
- Rediscover::Icon
- Defined in:
- lib/rediscover/icon.rb
Constant Summary collapse
- @@icon_dir =
File.join( File.dirname(__FILE__), 'icons')
Instance Method Summary collapse
-
#initialize(icon_name) ⇒ Icon
constructor
A new instance of Icon.
Constructor Details
#initialize(icon_name) ⇒ Icon
Returns a new instance of Icon.
6 7 8 9 |
# File 'lib/rediscover/icon.rb', line 6 def initialize(icon_name) icon_file = File.join(@@icon_dir, "#{icon_name}.png") super(icon_file, Wx::BITMAP_TYPE_PNG) end |