Sha256: 6cd18f286236e57a3a8381f208307b12cb92c53da73d78d8b32b0e23bf20e4cf

Contents?: true

Size: 392 Bytes

Versions: 17

Compression:

Stored size: 392 Bytes

Contents

module StorageRoom
  module Extensions
    module ConstDefined
      def is_constant_defined?(const)
        if ::RUBY_VERSION =~ /1.9/
          const_defined?(const, false)
        else
          const_defined?(const)
        end
      end
    end
  end
end

class Object
  include StorageRoom::Extensions::ConstDefined
end

class Module
  include StorageRoom::Extensions::ConstDefined
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
storage_room-0.3.24 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.23 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.22 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.21 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.20 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.19 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.18 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.17 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.16 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.15 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.14 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.13 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.12 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.11 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.10 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.9 lib/storage_room/extensions/const_defined.rb
storage_room-0.3.8 lib/storage_room/extensions/const_defined.rb