Module: ClassX::ClassMethods
- Defined in:
- lib/classx.rb
Instance Method Summary collapse
-
#process_init_args(*args) ⇒ Object
processing initialize argument to hash you can override this method for not taking initializer your classx based class.
Instance Method Details
#process_init_args(*args) ⇒ Object
processing initialize argument to hash you can override this method for not taking initializer your classx based class.
195 196 197 198 199 200 |
# File 'lib/classx.rb', line 195 def process_init_args *args raise ArgumentError if args.size > 1 hash = args.first hash.nil? ? {} : hash end |