Module: Arspy::Operators::AttributeTest

Defined in:
lib/arspy/operators/attribute_test.rb,
lib/arspy/operators/attribute_test/base.rb,
lib/arspy/operators/attribute_test/float_test.rb,
lib/arspy/operators/attribute_test/range_test.rb,
lib/arspy/operators/attribute_test/regexp_test.rb,
lib/arspy/operators/attribute_test/string_test.rb,
lib/arspy/operators/attribute_test/integer_test.rb,
lib/arspy/operators/attribute_test/unsupported_test.rb

Defined Under Namespace

Classes: Base, FloatTest, IntegerTest, RangeTest, RegexpTest, StringTest, UnsupportedTest

Constant Summary collapse

@@attribute_test_classes =
[
  IntegerTest, RangeTest, StringTest, RegexpTest, UnsupportedTest
]

Class Method Summary collapse

Class Method Details

.for(param) ⇒ Object



15
16
17
# File 'lib/arspy/operators/attribute_test.rb', line 15

def self.for(param)
  @@attribute_test_classes.detect{|klass| klass.applies?(param)}.new(param)
end