Re: Design Question - multiple XML parsers/ dependencies

Mohit Sindhwani <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <[email protected]>
On 2019-3-31 10:05 PM, Marvin Gülker wrote:
> Am 31. März 2019 um 14:31 Uhr +0800 schrieb Mohit Sindhwani:
>> How should we organise such code? Would it basically be two internal
>> implementations selected based on a parameter, or detection of the
>> installation? Just want to get some ideas or a link to a best practice or
>> somehing similar.
> If #require fails, it raises a LoadError exception, which can be
> rescued. This gives you the neccessary information for loading the
> correct parts of your library without having to ask the user:

Dear Marvin,

Thanks, the sample is very useful! It does sound like a reasonable way 
to use it.

Best Regards,
Mohit.
2019-4-6 | 1:39 PM.


Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.