Top Level Namespace
Defined Under Namespace
Modules: PortableDebugger
Instance Method Summary collapse
-
#execute_if_ruby_version(version, &block) ⇒ Object
Should work with floats (2.0, 2.1).
Instance Method Details
#execute_if_ruby_version(version, &block) ⇒ Object
Should work with floats (2.0, 2.1)
4 5 6 7 8 |
# File 'lib/portable_debugger.rb', line 4 def execute_if_ruby_version( version, &block ) if RUBY_VERSION =~ /^#{version}/ yield end end |