Used to wrap context sensitive option values, when the allowed options differ depending on the context.
Public Class methods
new(name, block)
[show source]
# File lib/rodish/plugins/help_option_values.rb 21 def initialize(name, block) 22 @name = name 23 super(block) 24 end
Public Instance methods
call(context)
Get the allowed values using the provided context, then wrap the values.
[show source]
# File lib/rodish/plugins/help_option_values.rb 27 def call(context) 28 Wrap_.wrap(" #{@name}", super) 29 end