Exception: Teapot::IncompatibleTeapotError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/teapot/loader.rb

Overview

Raised when a teapot file requires an incompatible version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package, version) ⇒ IncompatibleTeapotError

Returns a new instance of IncompatibleTeapotError.



31
32
33
# File 'lib/teapot/loader.rb', line 31

def initialize(package, version)
	super "Unsupported teapot_version #{version} in #{package.path}!"
end

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version.



35
36
37
# File 'lib/teapot/loader.rb', line 35

def version
  @version
end