lib/java_head/package.rb
# returns #class(name) or #subpackage(name) depending on the format of name
#
# @param [String] name the name of the member element
# @return [JavaHead::Package,JavaHead::Class] The child package or class
returns #class(name) or #subpackage(name) depending on the format of name
returns #class ( name ) or #subpackage ( name ) depending on the format of name
def member(name)
      if name.match JavaHead::Class::FORMAT
        self.class(name)
      else
        subpackage(name)
      end
    end
def member ( name ) if name . match JavaHead :: Class :: FORMAT self . class ( name ) else subpackage ( name ) end end
returns #class(name) or #subpackage(name) depending on the format of name
returns #class ( name ) or #subpackage ( name ) depending on the format of name
The child package or class
The child package or class
JavaHead::Package,JavaHead::Class
name
name the name of the member element
name the name of the member element