Method: Uinit::Type::TypeOf#initialize
- Defined in:
- lib/uinit/type/type_of.rb
#initialize(class_module) ⇒ TypeOf
Returns a new instance of TypeOf.
14 15 16 17 18 19 20 |
# File 'lib/uinit/type/type_of.rb', line 14 def initialize(class_module) super() raise ArgumentError, 'class_module must be a Class or a Module' unless self.class.from?(class_module) @class_module = class_module end |