Class: Arspy::Operators::AttributeTest::UnsupportedTest

Inherits:
Base
  • Object
show all
Defined in:
lib/arspy/operators/attribute_test/unsupported_test.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Arspy::Operators::AttributeTest::Base

Class Method Details

.applies?(param) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/arspy/operators/attribute_test/unsupported_test.rb', line 6

def self.applies?(param)
  true
end

Instance Method Details

#match?(object) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/arspy/operators/attribute_test/unsupported_test.rb', line 10

def match?(object)
  raise "#{@param.class.name} '#{@param.inspect}' not supported."
end