lib/rails_erd/entity.rb in rails-erd-0.1.1 vs lib/rails_erd/entity.rb in rails-erd-0.2.0
- old
+ new
@@ -6,11 +6,11 @@
attr_reader :domain
# The Active Record model that this entity corresponds to.
attr_reader :model
- def initialize(domain, model) #:nodoc:
+ def initialize(domain, model) # @private :nodoc:
@domain, @model = domain, model
end
# Returns an array of attributes for this entity.
def attributes
@@ -33,18 +33,18 @@
# corresponding model.
def name
model.name
end
- def inspect #:nodoc:
+ def inspect # @private :nodoc:
"#<#{self.class}:0x%.14x @model=#{name}>" % (object_id << 1)
end
- def to_s #:nodoc:
+ def to_s # @private :nodoc:
name
end
- def <=>(other) #:nodoc:
+ def <=>(other) # @private :nodoc:
self.name <=> other.name
end
end
end