A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ruby/mspec/commit/0091e8a62e954717cd54641f935eaf1403692041 below:

Prefer respond_to? to defined? in MSpec · ruby/mspec@0091e8a · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -30,7 +30,7 @@ def clean_yaml(yaml)

30 30

def valid_yaml?(obj)

31 31

require 'yaml'

32 32

begin

33 -

if defined?(YAML.unsafe_load)

33 +

if YAML.respond_to?(:unsafe_load)

34 34

YAML.unsafe_load(obj)

35 35

else

36 36

YAML.load(obj)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4