lib/alba.rb in alba-0.11.1 vs lib/alba.rb in alba-0.12.0
- old
+ new
@@ -4,10 +4,11 @@
# Core module
module Alba
# Base class for Errors
class Error < StandardError; end
+
# Error class for backend which is not supported
class UnsupportedBackend < Error; end
class << self
attr_reader :backend, :encoder
@@ -76,12 +77,12 @@
end
end
def resource_class
@resource_class ||= begin
- klass = Class.new
- klass.include(Alba::Resource)
- end
+ klass = Class.new
+ klass.include(Alba::Resource)
+ end
end
end
@encoder = default_encoder
end