Module: Polyfill::V2_2::Prime::ClassMethods
- Defined in:
- lib/polyfill/v2_2/prime.rb
Instance Method Summary collapse
Instance Method Details
#prime?(*args) ⇒ Boolean
5 6 7 8 9 10 |
# File 'lib/polyfill/v2_2/prime.rb', line 5 def prime?(*args) value = args.first return false if value < 0 super end |