Class: Rdm::ConfigLocals
- Inherits:
-
Object
- Object
- Rdm::ConfigLocals
- Defined in:
- lib/rdm/config_locals.rb
Instance Method Summary collapse
-
#initialize(locals = {}) ⇒ ConfigLocals
constructor
A new instance of ConfigLocals.
- #to_s ⇒ Object
Constructor Details
#initialize(locals = {}) ⇒ ConfigLocals
Returns a new instance of ConfigLocals.
2 3 4 |
# File 'lib/rdm/config_locals.rb', line 2 def initialize(locals = {}) @locals = locals end |
Instance Method Details
#to_s ⇒ Object
6 7 8 9 10 |
# File 'lib/rdm/config_locals.rb', line 6 def to_s @locals .map {|key, value| "#{key}: #{value}"} .join("\n") end |