Module: DynamicHelpGenerator::ClassMethods
- Defined in:
- lib/dynamic_help_generator.rb
Instance Attribute Summary collapse
-
#method_help ⇒ Object
readonly
Returns the value of attribute method_help.
-
#method_help_supplemental ⇒ Object
readonly
Returns the value of attribute method_help_supplemental.
Instance Method Summary collapse
Instance Attribute Details
#method_help ⇒ Object (readonly)
Returns the value of attribute method_help.
15 16 17 |
# File 'lib/dynamic_help_generator.rb', line 15 def method_help @method_help end |
#method_help_supplemental ⇒ Object (readonly)
Returns the value of attribute method_help_supplemental.
16 17 18 |
# File 'lib/dynamic_help_generator.rb', line 16 def method_help_supplemental @method_help_supplemental end |
Instance Method Details
#help_for(method, args, extra_help = "") ⇒ Object
8 9 10 11 12 13 |
# File 'lib/dynamic_help_generator.rb', line 8 def help_for(method, args, extra_help="") @method_help||={} @method_help_supplemental||={} @method_help[method.to_s] = args @method_help_supplemental[method.to_s] = extra_help end |