Class: Natsuzora::Contract::AST::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/natsuzora/contract/ast/node.rb

Overview

Base class for contract AST nodes. Each subclass implements to_h for JSON serialization. Use Natsuzora::Contract::AST.from_h for deserialization.

Direct Known Subclasses

Any, List, Record, Ref, Scalar

Instance Method Summary collapse

Instance Method Details

#to_hObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/natsuzora/contract/ast/node.rb', line 10

def to_h
  raise NotImplementedError
end