Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
fayrant-lang
master
Top Level Namespace
FayrantLang
AnyValue
ArithmeticError
ArityMismatchError
ArrayObjectValue
AST
BinaryExpr
BinaryExprAnd
BinaryExprConcat
BinaryExprDiv
BinaryExprDivInv
BinaryExprEq
BinaryExprExpt
BinaryExprGe
BinaryExprGt
BinaryExprLe
BinaryExprLt
BinaryExprMinus
BinaryExprMod
BinaryExprMult
BinaryExprNeq
BinaryExprOr
BinaryExprPlus
BooleanLiteralExpr
BreakStatement
ClassDeclarationStatement
ContinueStatement
EmptyStatement
ExecResult
Expr
ExprStatement
ForStatement
FunctionCallExpr
FunctionDeclarationStatement
IfStatement
LiteralExpr
NullLiteralExpr
NumberLiteralExpr
ObjectAccessExpr
ObjectFieldAssignmentStatement
ReturnStatement
Statement
StringFragment
StringInterpolationFragment
StringLiteralExpr
StringLiteralFragment
UnaryExpr
UnaryExprMinus
UnaryExprNegation
UnaryExprToNumber
UnaryExprToString
VariableAssignmentStatement
VariableDeclarationStatement
VariableExpr
WhileStatement
BooleanValue
BuiltinFunction
Context
DefinedVarError
ExecutionError
FunctionValue
Lexer
LexerContext
Location
NullValue
NumberValue
ObjectValue
Parser
StatementError
StringValue
SyntaxError
Token
TokenType
TypeError
UndefinedVarError
UserFunction
ValueType
Built with Crystal 1.9.2
2023-10-07 15:36:08 UTC
class
FayrantLang::StringValue
FayrantLang::StringValue
FayrantLang::AnyValue
Reference
Object
Defined in:
value.cr
Constructors
.new
(value : String)
Instance Method Summary
#==
(other : StringValue)
#get_string
: String
#to_string
: String
#value
: String
Instance methods inherited from class
FayrantLang::AnyValue
==(other)
==
,
get_boolean : Bool
get_boolean
,
get_function : FunctionValue
get_function
,
get_number : Float64
get_number
,
get_object : ObjectValue
get_object
,
get_string : String
get_string
,
to_string
to_string
,
type : FayrantLang::ValueType
type
Constructor methods inherited from class
FayrantLang::AnyValue
new(type : ValueType)
new
Constructor Detail
def self.
new
(value : String)
#
[
View source
]
Instance Method Detail
def
==
(other :
StringValue
)
#
[
View source
]
def
get_string
: String
#
[
View source
]
def
to_string
: String
#
[
View source
]
def
value
: String
#
[
View source
]