Sha256: 929ed467e05525cc4a6973d013edfac4e68aa1dfcb853d8487f29ed08e492a96

Contents?: true

Size: 193 Bytes

Versions: 4

Compression:

Stored size: 193 Bytes

Contents

require 'uri'

module ComplexConfig::Plugins
  URI = -> id do
    if url = id.to_s.sub(/uri\z/, 'url') and url = ask_and_send(url)
      ::URI.parse(url)
    else
      skip
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
complex_config-0.2.0 lib/complex_config/plugins/uri.rb
complex_config-0.1.1 lib/complex_config/plugins/uri.rb
complex_config-0.1.0 lib/complex_config/plugins/uri.rb
complex_config-0.0.0 lib/complex_config/plugins/uri.rb