Sha256: 867174af9a1e2a6102c27d201eafd3f1436b84e4b3527e41daa6191c22c8eafd

Contents?: true

Size: 289 Bytes

Versions: 12

Compression:

Stored size: 289 Bytes

Contents

class Config
  include SmartIoC::Iocify

  bean :config, factory_method: :get_config, after_init: :setup

  class TestConfig
    def setup
      # do nothing; only for testing purposes
    end

    def app_name
      'SmartIoC'
    end
  end

  def get_config
    TestConfig.new
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_ioc-0.5.2 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.5.1 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.5.0 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.9 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.4.0 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.8 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.7 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.6 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.5 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.2 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.1 spec/smart_ioc/example/utils/config.rb
smart_ioc-0.3.0 spec/smart_ioc/example/utils/config.rb