class
Lit::LitArray
- Lit::LitArray
- Lit::Instance
- Reference
- Object
Defined in:
lit/stdlib/lit_array.crConstant Summary
-
TYPE =
Type.new("LitArray", {} of String => Function)
Constructors
Instance Method Summary
- #elements : Array(Bool | Float64 | Int64 | Lit::Callable | Lit::Instance | Lit::Uninitialized | String | Nil)
- #get(name : Token) : Value
- #set(name : Token, value : Value)
Instance methods inherited from class Lit::Instance
call_method(name, arguments, interpreter)
call_method,
get(name)
get,
get_method(name) : Callable | Nil
get_method,
set(name, value)
set,
to_s(interpreter, token) : String
to_s,
type : Lit::Type
type
Constructor methods inherited from class Lit::Instance
new(type : Type, fields : Hash(String, Bool | Float64 | Int64 | ::Lit::Callable | ::Lit::Instance | ::Lit::Uninitialized | String | Nil) = {} of String => Value)
new
Constructor Detail
def self.new(elements : Array(Bool | Float64 | Int64 | ::Lit::Callable | ::Lit::Instance | ::Lit::Uninitialized | String | Nil) = [] of Value)
#
Instance Method Detail
def elements : Array(Bool | Float64 | Int64 | Lit::Callable | Lit::Instance | Lit::Uninitialized | String | Nil)
#