lib/domain/api.rb in domain-1.0.0.rc2 vs lib/domain/api.rb in domain-1.0.0.rc3
- old
+ new
@@ -1,40 +1,7 @@
module Domain
module API
- # Returns the super domain of `self`.
- #
- # @return [Class]
- # the super domain of `self` as a ruby class
- #
- # @api public
- def super_domain
- superclass
- end
-
- # Returns the sub domains of `self`.
- #
- # @return [Array]
- # an array of sub domains (possibly empty)
- #
- # @api public
- def sub_domains
- []
- end
-
- # Returns true if this domain is a super domain of `dom`.
- #
- # @param [Class] dom
- # a domain
- #
- # @return [Boolean]
- # true if self is a super domain of `dom`, false otherwise
- #
- # @api public
- def super_domain_of?(dom)
- sub_domains.include?(dom)
- end
-
# Raises a type error for `args`.
#
# @param [Array] args
# arguments passed to `new` or another factory method
# @raise TypeError
\ No newline at end of file