Class: Class
- Inherits:
-
Object
- Object
- Class
- Defined in:
- lib/queencheck/arbitrary.rb
Instance Method Summary collapse
-
#arbitrary(gen = nil, &block) ⇒ QueenCheck::Arbitrary
set arbitrary to class or get arbitrary of class.
-
#arbitrary? ⇒ Boolean
check implemented arbitrary on class.
Instance Method Details
#arbitrary ⇒ QueenCheck::Arbitrary #arbitrary(gen) ⇒ QueenCheck::Arbitrary #arbitrary(&block) ⇒ QueenCheck::Arbitrary
set arbitrary to class or get arbitrary of class
91 92 93 |
# File 'lib/queencheck/arbitrary.rb', line 91 def arbitrary(gen = nil, &block) QueenCheck::Arbitrary(name, gen || block) end |
#arbitrary? ⇒ Boolean
check implemented arbitrary on class
97 98 99 |
# File 'lib/queencheck/arbitrary.rb', line 97 def arbitrary? !QueenCheck::Arbitrary(name).nil? end |