~singpolyma/sgx-jmp

0db74cff3cbd3335466da43ab26ce96a6356ff4e — Stephen Paul Weber 1 year, 6 months ago 5ca04fe
NotLoaded should not use default to_s, etc
1 files changed, 3 insertions(+), 3 deletions(-)

M lib/not_loaded.rb
M lib/not_loaded.rb => lib/not_loaded.rb +3 -3
@@ 1,7 1,7 @@
# frozen_string_literal: true

class NotLoaded
	class NotLoadedError < StandardError; end
class NotLoaded < BasicObject
	class NotLoadedError < ::StandardError; end

	def initialize(name)
		@name = name


@@ 12,6 12,6 @@ class NotLoaded
	end

	def method_missing(*)
		raise NotLoadedError, "#{@name} not loaded"
		::Kernel.raise NotLoadedError, "#{@name} not loaded"
	end
end