Method: Yadriggy::CommonSuperType#supertype
- Defined in:
- lib/yadriggy/type.rb
#supertype ⇒ CommonSuperType|nil
277 278 279 280 281 282 283 |
# File 'lib/yadriggy/type.rb', line 277 def supertype if @type.is_a?(Class) && !@type.superclass.nil? CommonSuperType.new(@type.superclass) else nil end end |