Class: Meow::Autotest
- Inherits:
-
Object
- Object
- Meow::Autotest
- Defined in:
- lib/meow/autotest.rb
Constant Summary collapse
Class Attribute Summary collapse
-
.icon_dirs ⇒ Object
Returns the value of attribute icon_dirs.
Class Method Summary collapse
Class Attribute Details
.icon_dirs ⇒ Object
Returns the value of attribute icon_dirs.
12 13 14 |
# File 'lib/meow/autotest.rb', line 12 def icon_dirs @icon_dirs end |
Class Method Details
.icon_for(action) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/meow/autotest.rb', line 14 def icon_for action @icon_dirs.reverse.each do |dir| file = Dir[File.join(dir,'**')].find { |name| name =~ /#{action}/ } return file if file end end |