Class: Conquer::Dzen::Graphics::Icon

Inherits:
Graphic
  • Object
show all
Defined in:
lib/conquer/dzen/graphics/icon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Graphic

#move, #to_s

Methods included from Positioning

#lock_x, #shift, #unlock_x

Constructor Details

#initialize(path) ⇒ Icon

Returns a new instance of Icon.



9
10
11
12
13
14
# File 'lib/conquer/dzen/graphics/icon.rb', line 9

def initialize(path)
  super()
  @path = path
  @template = '^i(%s)'
  @template_args = [path]
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/conquer/dzen/graphics/icon.rb', line 7

def path
  @path
end