Any recommendations on the management of API versions. I have a case in 
which it is important that my library support all versions.

For example, currently I am basically doing:

  module MyLib
    module V0
      module Main
        ...
      end
    end

    class Main
      def initialize(version)
        extend MyLib.const_get("V#{version}")::Main
      end
    end
  end

Does that seem like a good approach. Or is it overkill? Is there a better 
way to handle this?

Thanks.

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to