Method: Console::Filter.define_immutable_method

Defined in:
lib/console/filter.rb,
lib/console/filter.rb

.define_immutable_method(name, &block) ⇒ Object

Define a method.



16
17
18
19
# File 'lib/console/filter.rb', line 16

def self.define_immutable_method(name, &block)
  block = Ractor.make_shareable(block)
  self.define_method(name, &block)
end