Module: Faith::Named

Included in:
Mixin, Task
Defined in:
lib/faith/named.rb

Instance Method Summary collapse

Instance Method Details

#full_nameObject



7
8
9
# File 'lib/faith/named.rb', line 7

def full_name
  (parent && !parent.root?) ? "#{parent.full_name}:#{name}" : name
end

#root?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/faith/named.rb', line 3

def root?
  name == 'root'
end