Method: Typedocs::TypeSpec::Or#initialize
- Defined in:
- lib/typedocs/type_spec.rb
#initialize(children) ⇒ Or
Returns a new instance of Or.
164 165 166 167 168 169 170 |
# File 'lib/typedocs/type_spec.rb', line 164 def initialize(children) raise ArgumentError, "Children is empty" if children.empty? children.each do|c| Typedocs.ensure_klass(c, Typedocs::TypeSpec) end @children = children end |