abstract class HCL::AST::Node

Direct Known Subclasses

Defined in:

hcl/ast/node.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : HCL::Any) ==

Instance methods inherited from class Object

===(other : HCL::Any) ===

Class methods inherited from class Object

from_hcl(string_or_io : String | IO, ctx : HCL::ExpressionContext = HCL::ExpressionContext.default_context) from_hcl

Constructor Detail

def self.new(source : String = "", token : Pegmatite::Token? = nil) #

Instance Method Detail

def accept(visitor) #

def evaluate(ctx : ExpressionContext) #

def inspect(io) #

def source : String #

def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

def value(ctx : ExpressionContext) : Any #

DEPRECATED Use #evaluate