class Tabulous::OldVersionChecker
Public Instance Methods
method_missing(meth, *args, &block)
click to toggle source
The old version of the tabulous.rb file starts like this:
Tabulous.setup do |config|
The new version starts like this:
Tabulous.setup do
This class is a dummy class that will intercept any methods sent to the config object if the tabulous.rb file is using the old format.
# File lib/tabulous/old_version_checker.rb, line 15 def method_missing(meth, *args, &block) msg = "It looks like your tabulous.rb file is written for an " msg << "old version of tabulous. This newer version of tabulous " msg << "uses a new syntax that is not backwards-compatible." raise OldVersionError, msg end