Skip to content
Browse files

+ vs <tt> in ActiveResource::Base docs

  • Loading branch information...
1 parent b4d44d3 commit 42c5ca18a08d6d6bae0a0925dfda0029552a55ba @fxn fxn committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 activeresource/lib/active_resource/base.rb
View
6 activeresource/lib/active_resource/base.rb
@@ -707,7 +707,7 @@ def to_param
end
# Test for equality. Resource are equal if and only if +other+ is the same object or
- # is an instance of the same class, is not +new?+, and has the same +id+.
+ # is an instance of the same class, is not <tt>new?</tt>, and has the same +id+.
#
# ==== Examples
# ryan = Person.create(:name => 'Ryan')
@@ -795,7 +795,7 @@ def destroy
connection.delete(element_path, self.class.headers)
end
- # Evaluates to <tt>true</tt> if this resource is not +new?+ and is
+ # Evaluates to <tt>true</tt> if this resource is not <tt>new?</tt> and is
# found on the remote service. Using this method, you can check for
# resources that may have been deleted between the object's instantiation
# and actions on it.
@@ -898,7 +898,7 @@ def load(attributes)
self
end
- # For checking +respond_to?+ without searching the attributes (which is faster).
+ # For checking <tt>respond_to?</tt> without searching the attributes (which is faster).
alias_method :respond_to_without_attributes?, :respond_to?
# A method to determine if an object responds to a message (e.g., a method call). In Active Resource, a Person object with a

0 comments on commit 42c5ca1

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