Module: Boson::Command::Namespacer

Included in:
Boson::Command
Defined in:
lib/boson/namespacer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#namespaceObject

Returns the value of attribute namespace.



43
44
45
# File 'lib/boson/namespacer.rb', line 43

def namespace
  @namespace
end

Instance Method Details

#full_nameObject

Full name is only different than name if a command has a namespace. The full name should be what you would type to execute the command.



47
48
49
# File 'lib/boson/namespacer.rb', line 47

def full_name
  @namespace ? "#{@namespace}.#{@name}" : @name
end