Class: Yoda::Typing::Tree::Literal

Inherits:
Base
  • Object
show all
Includes:
LiteralInferable
Defined in:
lib/yoda/typing/tree/literal.rb

Instance Attribute Summary

Attributes inherited from Base

#context, #tracer

Instance Method Summary collapse

Methods included from LiteralInferable

#infer_literal

Methods inherited from Base

#build_child, #generator, #infer_child, #initialize, #inspect, #pretty_print, #type

Constructor Details

This class inherits a constructor from Yoda::Typing::Tree::Base

Instance Method Details

#infer_type ⇒ Object



12
13
14
# File 'lib/yoda/typing/tree/literal.rb', line 12

def infer_type
  infer_literal(node)
end

#node ⇒ AST::LiteralNode, AST::Node



12
13
14
# File 'lib/yoda/typing/tree/literal.rb', line 12

def infer_type
  infer_literal(node)
end