Module: Plumbum::Providers::Singular
Overview
Provider implementation that wraps a single key-value pair.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key matched by the provider.
-
#value ⇒ Object
readonly
The value returned by the provider.
Method Summary
Methods included from Plumbum::Provider
#get, #has?, #options, #read_only?, #set, #write_once?
Instance Attribute Details
#key ⇒ String (readonly)
Returns the key matched by the provider.
11 12 13 |
# File 'lib/plumbum/providers/singular.rb', line 11 def key @key end |
#value ⇒ Object (readonly)
Returns the value returned by the provider.
14 15 16 |
# File 'lib/plumbum/providers/singular.rb', line 14 def value @value end |