Module: Boson::Library::Alias
- Included in:
- Boson::Library
- Defined in:
- lib/boson/alias.rb
Overview
- :class_commands
-
A hash of commands to create. A hash key-pair can map command names to any string of ruby code that ends with a method call. Or a key-pair can map a class to an array of its class methods to create commands of the same name. Example:
:class_commands=>{'spy'=>'Bond.spy', 'create'=>'Alias.manager.create', 'Boson::Util'=>['detect', 'any_const_get']}
- :no_alias_creation
-
Boolean which doesn’t create aliases for a library. Useful for libraries that configure command aliases outside of Boson’s control. Default is false.
Instance Attribute Summary collapse
-
#class_commands ⇒ Object
readonly
Returns the value of attribute class_commands.
-
#no_alias_creation ⇒ Object
readonly
Returns the value of attribute no_alias_creation.
Instance Attribute Details
#class_commands ⇒ Object (readonly)
Returns the value of attribute class_commands.
13 14 15 |
# File 'lib/boson/alias.rb', line 13 def class_commands @class_commands end |
#no_alias_creation ⇒ Object (readonly)
Returns the value of attribute no_alias_creation.
13 14 15 |
# File 'lib/boson/alias.rb', line 13 def no_alias_creation @no_alias_creation end |