Sha256: e5162cace922fd63121be95315f72d77e7eb254e5c5f1f0c36652132bee6e5b5

Contents?: true

Size: 359 Bytes

Versions: 28

Compression:

Stored size: 359 Bytes

Contents

module PDoc
  module Models
    class ClassMethod < Entity
      include Callable
      attr_accessor :methodized_self
      def attach_to_parent(parent)
        parent.class_methods << self
      end
      
      def to_hash
        m = methodized_self
        super.merge({
          :methodized_self => m ? m.id : nil
        })
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
distil-0.14.4 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.3 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.2 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.2.a vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.1 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.1.a vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.0 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.0.i vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.0.h vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.0.g vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.0.d vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.0.c vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.14.0.b vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.13.6 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.13.5 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.13.4 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.13.3 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.13.2 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.13.1 vendor/pdoc/lib/pdoc/models/class_method.rb
distil-0.13.0 vendor/pdoc/lib/pdoc/models/class_method.rb