Method: WebkitRemote::Client::JsObject.initializer
- Defined in:
- lib/webkit_remote/client/runtime.rb
.initializer(name) ⇒ Object
Registers a module initializer.
317 318 319 320 321 322 323 324 325 326 327 328 329 |
# File 'lib/webkit_remote/client/runtime.rb', line 317 def self.initializer(name) before_name = :"initialize_modules_before_#{name}" alias_method before_name, :initialize_modules private before_name remove_method :initialize_modules eval <<END_METHOD def initialize_modules #{name} #{before_name.to_s} end END_METHOD private :initialize_modules end |