Method: Needle::Container#fullname

Defined in:
lib/needle/container.rb

#fullnameObject

Return the fully qualified name of this container, which is the container’s name and all parent’s names up to the root container, catenated together with dot characters, i.e., “one.two.three”.



79
80
81
82
83
# File 'lib/needle/container.rb', line 79

def fullname
  parent_name = ( parent ? parent.fullname : nil )
  return @name.to_s unless parent_name
  "#{parent_name}.#{@name}"
end