Module: Ro::Klass::ClassMethods

Defined in:
lib/ro/klass.rb

Instance Method Summary collapse

Instance Method Details

#klass(arg, *args, **kws, &block) ⇒ Object Also known as: for



4
5
6
7
8
# File 'lib/ro/klass.rb', line 4

def klass(arg, *args, **kws, &block)
  return arg if arg.is_a?(self.class) && args.empty? && kws.empty? && block.nil?

  new(arg, *args, **kws, &block)
end