Module: ScaleRb::OldRegistry::TypeExp

Defined in:
lib/scale_rb/old_registry.rb

Defined Under Namespace

Classes: ArrayType, NamedType, Tokenizer, TupleType, TypeExpParser

Class Method Summary collapse

Class Method Details

.parse(type_exp) ⇒ Object

% parse

String -> NamedType | ArrayType | TupleType



363
364
365
# File 'lib/scale_rb/old_registry.rb', line 363

def self.parse(type_exp)
  TypeExpParser.new(type_exp).parse
end
% print

NamedType | ArrayType | TupleType -> String



358
359
360
# File 'lib/scale_rb/old_registry.rb', line 358

def self.print(type)
  type.to_s
end