Class: Conquer::Dzen::Graphics::Icon
- Defined in:
- lib/conquer/dzen/graphics/icon.rb
Constant Summary collapse
- ICONS_PATH =
File.('../../../../../icons', __FILE__)
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Icon
constructor
A new instance of Icon.
Methods inherited from Graphic
Methods included from Positioning
#ignore_bg, #lock_x, #shift, #unlock_x
Constructor Details
#initialize(path) ⇒ Icon
Returns a new instance of Icon.
10 11 12 13 14 15 16 17 |
# File 'lib/conquer/dzen/graphics/icon.rb', line 10 def initialize(path) super() path = File.join(ICONS_PATH, "#{path}.xbm") if path.is_a?(Symbol) STDERR.puts(path) @path = path @template = '^i(%s)' @template_args = [path] end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'lib/conquer/dzen/graphics/icon.rb', line 8 def path @path end |