lib/yard/code_objects/method_object.rb in yard-0.6.4 vs lib/yard/code_objects/method_object.rb in yard-0.6.5
- old
+ new
@@ -1,13 +1,8 @@
module YARD::CodeObjects
# Represents a Ruby method in source
class MethodObject < Base
- # The visibility of the method (+:public:+, +:protected+, +:private+)
- #
- # @return [Symbol] the method visibility
- attr_reader :visibility
-
# The scope of the method (+:class+ or +:instance+)
#
# @return [Symbol] the scope
attr_reader :scope
@@ -47,13 +42,9 @@
YARD::Registry.delete(self) if reregister
@path = nil
@scope = v.to_sym
YARD::Registry.register(self) if reregister
end
-
- # Sets the visibility
- # @param [Symbol] v the new visibility (:public, :private, or :protected)
- def visibility=(v) @visibility = v.to_sym end
# @return whether or not the method is the #initialize constructor method
def constructor?
name == :initialize && scope == :instance && namespace.is_a?(ClassObject)
end