class BitGirder::Core::RubyVersions
Public Class Methods
is_19x?()
click to toggle source
# File lib/bitgirder/core.rb, line 23 def self.is_19x? RUBY_VERSION >= "1.9" end
jruby?()
click to toggle source
# File lib/bitgirder/core.rb, line 31 def self.jruby? RUBY_PLATFORM == "java" end
when_19x( val = nil, &blk )
click to toggle source
# File lib/bitgirder/core.rb, line 27 def self.when_19x( val = nil, &blk ) self.when_geq( "1.9", val, &blk ) end
when_geq( ver, val = nil ) { |val| ... }
click to toggle source
# File lib/bitgirder/core.rb, line 15 def self.when_geq( ver, val = nil ) if RUBY_VERSION >= ver yield( val ) else val end end