Class: Class
- Inherits:
-
Object
- Object
- Class
- Defined in:
- lib/option_initializer.rb
Instance Method Summary collapse
Instance Method Details
#|(other_class) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/option_initializer.rb', line 6 def | other_class unless other_class.is_a?(Class) raise TypeError, "wrong argument type (expected: Class)" end OptionInitializer::ClassMatch.new(self, other_class) end |