mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
1d7547f50d
commit
21bac99122
2 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: false
|
||||
require 'yaml'
|
||||
require 'dbm'
|
||||
|
||||
begin
|
||||
require 'dbm'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
module YAML
|
||||
|
||||
|
@ -288,4 +292,4 @@ class DBM < ::DBM
|
|||
alias :each :each_pair
|
||||
end
|
||||
|
||||
end
|
||||
end if defined?(DBM)
|
||||
|
|
|
@ -43,4 +43,4 @@ class TestYAMLDBM < Test::Unit::TestCase
|
|||
@dbm["key"] = "value"
|
||||
assert_equal ["key", "value"], @dbm.shift
|
||||
end
|
||||
end
|
||||
end if defined?(YAML::DBM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue