lib/run_loop/xcode.rb in run_loop-2.1.7 vs lib/run_loop/xcode.rb in run_loop-2.1.8
- old
+ new
@@ -235,11 +235,11 @@
# @return [String] path to current developer directory
#
# @raise [RuntimeError] If path to Xcode.app/Contents/Developer
# cannot be determined.
def developer_dir
- @xcode_developer_dir ||= lambda do
+ @xcode_developer_dir ||= begin
if RunLoop::Environment.developer_dir
path = RunLoop::Environment.developer_dir
else
path = xcode_select_path
end
@@ -265,10 +265,10 @@
$ man xcrun
$ man xcode-select
}
end
path
- end.call
+ end
end
private
attr_reader :xcode_versions