Module: Rx::Type::NoParams
- Included in:
- Core::Bool, Core::Date, Core::Def, Core::Fail, Core::Nil, Core::One, Core::Time
- Defined in:
- lib/rx/ruby/Rx.rb
Instance Method Summary collapse
Instance Method Details
#initialize(param, rx) ⇒ Object
161 162 163 164 165 166 |
# File 'lib/rx/ruby/Rx.rb', line 161 def initialize(param, rx) return if param.keys.length == 0 return if param.keys == [ 'type' ] raise Rx::Exception.new('this type is not parameterized') end |