Class: Inspector::Constraints::True
- Inherits:
-
Object
- Object
- Inspector::Constraints::True
- Includes:
- Inspector::Constraint
- Defined in:
- lib/inspector/constraints/true.rb
Instance Method Summary collapse
Methods included from Inspector::Constraint
#negate!, #positive?, #validator
Instance Method Details
#inspect ⇒ Object
14 15 16 |
# File 'lib/inspector/constraints/true.rb', line 14 def inspect "#<true>" end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/inspector/constraints/true.rb', line 10 def to_s "be_true" end |
#valid?(actual) ⇒ Boolean
6 7 8 |
# File 'lib/inspector/constraints/true.rb', line 6 def valid?(actual) !!actual end |