Module: Boson::Command::Namespacer
- Included in:
- Boson::Command
- Defined in:
- lib/boson/namespacer.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#full_name ⇒ Object
Full name is only different than name if a command has a namespace.
Instance Attribute Details
#namespace ⇒ Object
Returns the value of attribute namespace.
43 44 45 |
# File 'lib/boson/namespacer.rb', line 43 def namespace @namespace end |
Instance Method Details
#full_name ⇒ Object
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 |