Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
monyet
main
Top Level Namespace
Ast
ArrayLiteral
BlockStatement
BooleanLiteral
CallExpression
Expression
ExpressionStatement
FunctionLiteral
HashLiteral
Identifier
IfExpression
IndexExpression
InfixExpression
IntegerLiteral
LetStatement
LiteralExpression
Node
PrefixExpression
Program
ReturnStatement
Statement
StringLiteral
TokenHolder
Benchmarks
Bool
Char
Code
Definition
Instructions
MBytes
OffsetArray
Opcode
Compilers
Bytecode
CompilationScope
EmittedInstruction
MCompiler
MCompilerException
Evaluator
Environment
HashKey
HashPair
Lexers
Lexer
MArray
MBoolean
MBuiltinFunction
MError
MFunction
MHash
MInteger
MObject
Monyet
MReturnValue
MString
MValue
Nil
Object
Objects
BuiltinFunction
HashKey
HashPair
HashType
MArray
MBoolean
MBuiltinFunction
MClosure
MCompiledFunction
MError
MFunction
MHash
MInteger
MNull
MObject
MReturnValue
MString
MValue
Parsers
InfixParser
Parser
Precedence
PrefixParser
String
Symbols
Symbol
SymbolException
SymbolScope
SymbolTable
Tokens
Token
TokenType
Utils
Vm
Frame
VM
VMException
Generated using Crystal 1.14.0
2024-11-26 08:50:28 UTC
class
Objects::
MString
Objects::MString
Objects::MValue
(
String
)
Objects::MObject
Reference
Object
Defined in:
objects.cr
Constructors
.new
(value : T)
Instance Method Summary
#+
(other : MString) : MString
#hash_key
: HashKey
#hash_type
: HashType
Instance methods inherited from class
Objects::MValue
(
String
)
hash_key : HashKey
hash_key
,
hash_type : HashType
hash_type
,
inspect : String
inspect
,
value
value
Constructor methods inherited from class
Objects::MValue
(
String
)
new(value : T)
new
Instance methods inherited from class
Objects::MObject
error? : Bool
error?
,
if_not_error(& : MObject -> MObject | Nil) : MObject | Nil
if_not_error
,
inspect : String
inspect
,
truthy? : Bool
truthy?
,
type_desc : String
type_desc
Instance methods inherited from class
Object
also(& :
self
| Nil -> _) :
self
also
,
or_else(alternative)
or_else
Constructor Detail
def self.
new
(value :
T
)
#
[
View source
]
Instance Method Detail
def
+
(other :
MString
) :
MString
#
[
View source
]
def
hash_key
:
HashKey
#
[
View source
]
def
hash_type
:
HashType
#
[
View source
]