Public Instance methods
plugin(plugin, *args, &block)
Automatically refresh the instance variables used if the plugin sets instance variables.
[show source]
# File lib/roda/plugins/shape_friendly.rb 79 def plugin(plugin, *args, &block) 80 super 81 plugin = RodaPlugins.load_plugin(plugin) if plugin.is_a?(Symbol) 82 [ 83 [self, :SCOPE_INSTANCE_VARIABLES], 84 [self::RodaRequest, :REQUEST_INSTANCE_VARIABLES], 85 [self::RodaResponse, :RESPONSE_INSTANCE_VARIABLES], 86 ].each do |klass, ivs_const| 87 if plugin.const_defined?(ivs_const) 88 def_initialize_nil_instance_variables(klass, ivs_const) 89 end 90 end 91 nil 92 end