Sha256: a35c5a9fc2bbb1e44076ae1ac27f6137b9849690bc6c2591d7f5a45f70450657

Contents?: true

Size: 618 Bytes

Versions: 6

Compression:

Stored size: 618 Bytes

Contents

class TestHarness
  class UIHelper
    def self.autoload
      Dir.glob(File.join(TestHarness.autoload_path, 'ui/*.rb')).each do |file|
        component =  File.basename(file, '.rb')
        require File.join(TestHarness.autoload_path, 'ui', component)
        klass = TestHarness::Utilities.constantize("%s::%s::%s" % [
          TestHarness.namespace,
          TestHarness::Utilities.camelize(component),
          self.name.split('::').last
        ])
        TestHarness.register_instance_option(self, component, klass.new)
        klass.send(:include, TestHarness::UIComponentHelper)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
test-harness-0.4.14 lib/ui_helper.rb
test-harness-0.4.13 lib/ui_helper.rb
test-harness-0.4.12 lib/ui_helper.rb
test-harness-0.4.11 lib/ui_helper.rb
test-harness-0.4.10 lib/ui_helper.rb
test-harness-0.4.9 lib/ui_helper.rb