Skip to content
Browse files

Supress @private documentation

  • Loading branch information...
1 parent 8a17698 commit 7ee8c9d225bfb1a17671a49dadf2d5b797cc1825 @cgriego committed Oct 30, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 .yardopts
  2. +6 −6 lib/active_attr/matchers/have_attribute_matcher.rb
View
2 .yardopts
@@ -1 +1 @@
-- CHANGELOG* *LICENSE*
+--no-private - CHANGELOG* *LICENSE*
View
12 lib/active_attr/matchers/have_attribute_matcher.rb
@@ -22,29 +22,29 @@ def have_attribute(attribute_name)
# @since 0.2.0
class HaveAttributeMatcher
# @return [Symbol]
- # @api private
+ # @private
attr_reader :attribute_name
# @return [String] Description
- # @api private
+ # @private
def description
"have attribute named #{attribute_name}"
end
# @return [String] Failure message
- # @api private
+ # @private
def failure_message
"Expected #{@model_class} to #{description}"
end
# @param [Symbol, String, #to_sym] attribute_name
- # @api private
+ # @private
def initialize(attribute_name)
raise TypeError, "can't convert #{attribute_name.class} into Symbol" unless attribute_name.respond_to? :to_sym
@attribute_name = attribute_name.to_sym
end
- # @api private
+ # @private
def matches?(model_or_model_class)
@model_class = class_from(model_or_model_class)
@@ -54,7 +54,7 @@ def matches?(model_or_model_class)
end
# @return [String] Negative failure message
- # @api private
+ # @private
def negative_failure_message
"Expected #{@model_class} to not #{description}"
end

0 comments on commit 7ee8c9d

Please sign in to comment.
Something went wrong with that request. Please try again.