Class: Stamina::Gui::Examples

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/stamina-gui/stamina/gui/examples.rb

Defined Under Namespace

Classes: Category, Example

Constant Summary collapse

FOLDER =

Category where examples are located

File.expand_path("../../../../../examples", __FILE__)

Instance Method Summary collapse

Instance Method Details

#eachObject



10
11
12
13
14
15
# File 'lib/stamina-gui/stamina/gui/examples.rb', line 10

def each
  Dir[File.join(FOLDER, "*")].sort.each do |file|
    next unless File.directory?(file)
    yield(Category.new(file))
  end
end