Class: Phlex::Rails::Never

Inherits:
BasicObject
Defined in:
lib/phlex/rails/never.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Never

Returns a new instance of Never.



4
5
6
# File 'lib/phlex/rails/never.rb', line 4

def initialize(&block)
	@block = block
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name) ⇒ Object



8
9
10
# File 'lib/phlex/rails/never.rb', line 8

def method_missing(method_name, *, **)
	@block.call(method_name, *, **)
end