Module: Polyfill::V2_3::Prime::ClassMethods
- Defined in:
- lib/polyfill/v2_3/prime.rb
Instance Method Summary collapse
Instance Method Details
#prime?(*args) ⇒ Boolean
5 6 7 8 9 10 11 12 |
# File 'lib/polyfill/v2_3/prime.rb', line 5 def prime?(*args) value = args.first unless value.is_a?(::Integer) raise ArgumentError, "Expected an integer, got #{value}" end super end |