Class: MediaTypes::Scheme::CaseEqualityWithList
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- MediaTypes::Scheme::CaseEqualityWithList
- Defined in:
- lib/media_types/scheme/any_of.rb
Instance Method Summary collapse
-
#===(other) ⇒ Object
True for Enumerable#any? Object#===.
- #inspect ⇒ Object
Instance Method Details
#===(other) ⇒ Object
True for Enumerable#any? Object#===
10 11 12 |
# File 'lib/media_types/scheme/any_of.rb', line 10 def ===(other) any? { |it| it === other } # rubocop:disable Style/CaseEquality end |
#inspect ⇒ Object
14 15 16 |
# File 'lib/media_types/scheme/any_of.rb', line 14 def inspect "[Scheme::AnyOf(#{__getobj__})]" end |