Module: Tins::CasePredicate

Included in:
Object
Defined in:
lib/tins/case_predicate.rb

Instance Method Summary collapse

Instance Method Details

#case?(*args) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/tins/case_predicate.rb', line 3

def case?(*args)
  args.find { |a| a === self }
end