Module: Phlex::Rails::Types

Included in:
Phlex::Rails
Defined in:
lib/phlex/rails/types.rb

Instance Method Summary collapse

Instance Method Details

#Buffered(type) ⇒ Object



6
7
8
# File 'lib/phlex/rails/types.rb', line 6

def Buffered(type)
	-> (value) { Phlex::Rails::Buffered === value && type === value.unwrap }
end

#Builder(type) ⇒ Object



10
11
12
# File 'lib/phlex/rails/types.rb', line 10

def Builder(type)
	-> (value) { Phlex::Rails::Builder === value && type === value.unwrap }
end