Module: Plumbum::Providers::Singular

Includes:
Plumbum::Provider
Included in:
OneProvider
Defined in:
lib/plumbum/providers/singular.rb

Overview

Provider implementation that wraps a single key-value pair.

Instance Attribute Summary collapse

Method Summary

Methods included from Plumbum::Provider

#get, #has?, #options, #read_only?, #set, #write_once?

Instance Attribute Details

#keyString (readonly)

Returns the key matched by the provider.

Returns:

  • (String)

    the key matched by the provider.



11
12
13
# File 'lib/plumbum/providers/singular.rb', line 11

def key
  @key
end

#valueObject (readonly)

Returns the value returned by the provider.

Returns:

  • (Object)

    the value returned by the provider.



14
15
16
# File 'lib/plumbum/providers/singular.rb', line 14

def value
  @value
end