Module: Rxrb::Rx::Type::NoParams

Included in:
Core::Bool, Core::Date, Core::Def, Core::Fail, Core::Nil, Core::One, Core::Time
Defined in:
lib/rxrb/rx/type.rb

Instance Method Summary collapse

Instance Method Details

#initialize(param, _rx) ⇒ Object

Raises:



21
22
23
24
25
26
# File 'lib/rxrb/rx/type.rb', line 21

def initialize(param, _rx)
  return if param.keys.empty?
  return if param.keys == ['type']

  raise Rx::Exception, 'this type is not parameterized'
end