lib/neutrino/gateway/uri/whitelist.rb
# Gets the URI component from the given template and value(s)
#
# @return [String] the URI component
# @raise [Object] the custom exception specified earlier, when a value is empty
Gets the URI component from the given template and value(s)
Gets the URI component from the given template and value ( s )
def to_s
          fail @error if @error && @value.empty?
          @template.sub('{value}', URI.encode(@value.to_s)) + @component
        end
def to_s fail @error if @error && @value . empty? @template . sub ( '{value}' , URI . encode ( @value . to_s ) ) + @component end
Gets the URI component from the given template and value(s)
Gets the URI component from the given template and value ( s )
the URI component
the URI component
String
[Object] the custom exception specified earlier, when a value is empty
[ Object ] the custom exception specified earlier when a value is empty