Sha256: 968e60837dd82692f90ac35a44891c538ec101ee2a85351184ea631d372f4ff1

Contents?: true

Size: 673 Bytes

Versions: 2

Compression:

Stored size: 673 Bytes

Contents

module Testing

  class BasicPlugin < Webgen::Plugin
  end


  INFOS_HASH = {
    :summary => 'Summary',
    :description => 'Description',
    :instantiate => false,
    :name => 'Testing/PluginWithData'
  }
  PARAM_ARRAY = ['test', [5,6], 'Test description']
  DEPS_ARRAY = ['Testing/BasicPlugin', 'Testing/DerivedPlugin']

  class PluginWithData < Webgen::Plugin

    infos INFOS_HASH

    param( *PARAM_ARRAY )
    param 'otherparam', 'otherparam', 'tst'

    depends_on( *DEPS_ARRAY )

  end

  load_optional_part( 'test',
                      :needed_gems => ['unknown'],
                      :error_msg => 'error_msg' ) do
    require 'unknown_library'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webgen-0.4.1 test/fixtures/tc_plugin/plugin1.rb
webgen-0.4.0 test/fixtures/tc_plugin/plugin1.rb