Sha256: 15480e62d044fede2fc67ec4e1fa6bb3fdcadc469ec3f6d8f0abe25b5cb3dba4
Contents?: true
Size: 279 Bytes
Versions: 2
Compression:
Stored size: 279 Bytes
Contents
module RubyFeatures module_function def keyword_arguments? ruby?('2.0') && !rbx? end def required_keyword_arguments? ruby?('2.1') && keyword_arguments? end def ruby?(version) RUBY_VERSION >= version end def rbx? RUBY_ENGINE == 'rbx' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | spec/support/ruby_features.rb |
bogus-0.1.6 | spec/support/ruby_features.rb |