Method: ConfSources::Clone#initialize

Defined in:
lib/confsources.rb

#initialize(other) ⇒ Clone

Returns a new instance of Clone.



76
77
78
79
80
81
82
83
84
# File 'lib/confsources.rb', line 76

def initialize other
    if other.kind_of? Default
        @options = other.options.collect {|el|el.clone}
    elsif other.is_a? Array
        @options = other.collect {|el| el.clone}
    else
        raise RuntimeError, "Can't clone configuration sorce from #{other.class}"
    end
end