Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
hcl
v0.2.2
Top Level Namespace
Array
Bool
Hash
HCL
Any
RawType
Type
ArityMismatchError
AST
Block
BlockLabel
Body
CallExpr
CondExpr
Document
Expression
ForExpr
GetAttrExpr
Heredoc
Identifier
IndexExpr
List
Literal
Map
Node
Number
Value
Operand
OpExpr
SplatExpr
Template
TemplateForExpr
TemplateIf
TemplateInterpolation
Attribute
Block
Builder
BuildError
CallError
ExpressionContext
ExpressionError
Function
ArgumentTypeError
FunctionArgumentError
FunctionEvalError
Functions
Abs
Coalesce
Compact
Concat
Format
HasIndex
Int
JSONDecode
JSONEncode
Length
Lower
Max
Min
SetHas
SetIntersection
SetSubtract
SetSymDiff
SetUnion
Strlen
Substr
Upper
FunctionUndefinedError
Label
ParseException
Parser
Serializable
Options
Strict
Unmapped
VariableUndefinedError
Visitor
Visitors
Evaluator
ToSVisitor
NamedTuple
Nil
Number
Object
Reference
Set
String
Symbol
Tuple
Value
Generated using Crystal 1.10.1
2024-05-12 07:10:20 UTC
class
HCL::
AST::
Number
HCL::AST::Number
HCL::AST::Node
Reference
Object
Defined in:
hcl/ast/number.cr
Constructors
.new
(source : String, token : Pegmatite::Token | Nil =
nil
)
.new
(number : Value, **kwargs)
Instance Method Summary
#value
: Float64 | Int64
Instance methods inherited from class
HCL::AST::Node
accept(visitor)
accept
,
evaluate(ctx : ExpressionContext)
evaluate
,
inspect(io)
inspect
,
source : String
source
,
to_s(io : IO)
to_s
,
value(ctx : ExpressionContext) : Any
value
Constructor methods inherited from class
HCL::AST::Node
new(source : String =
""
, token : Pegmatite::Token | Nil =
nil
)
new
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
=
nil
)
#
[
View source
]
def self.
new
(number :
Value
, **kwargs)
#
[
View source
]
Instance Method Detail
def
value
: Float64 | Int64
#
[
View source
]