Class: Dracula::NamespaceHelp
- Inherits:
-
Object
- Object
- Dracula::NamespaceHelp
- Defined in:
- lib/dracula/namespace_help.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#initialize(namespace) ⇒ NamespaceHelp
constructor
A new instance of NamespaceHelp.
- #show ⇒ Object
Constructor Details
#initialize(namespace) ⇒ NamespaceHelp
Returns a new instance of NamespaceHelp.
6 7 8 |
# File 'lib/dracula/namespace_help.rb', line 6 def initialize(namespace) @namespace = namespace end |
Instance Attribute Details
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
4 5 6 |
# File 'lib/dracula/namespace_help.rb', line 4 def namespace @namespace end |
Instance Method Details
#show ⇒ Object
10 11 12 13 14 |
# File 'lib/dracula/namespace_help.rb', line 10 def show show_usage show_desc if namespace.description show_commands end |