From 966a20f1533b0781197221bcb7ed97f0c0622006 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 26 Jun 2017 02:31:57 +0000 Subject: pool: simplify empty class definition This should compile to smaller bytecode with YARV --- lib/mogilefs/pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mogilefs/pool.rb b/lib/mogilefs/pool.rb index e7c4009..390e4a9 100644 --- a/lib/mogilefs/pool.rb +++ b/lib/mogilefs/pool.rb @@ -11,7 +11,7 @@ class MogileFS::Pool # Default: 2 attr_accessor :purge_keep - class BadObjectError < RuntimeError; end + BadObjectError = Class.new(RuntimeError) def initialize(klass, *args) @args = args -- cgit v1.2.3-24-ge0c7