class QT::MtTerm
- QT::MtTerm
- QT::MtNode
- Reference
- Object
Defined in:
core/mt_node/mt_term.crConstant Summary
-
COSTS =
{0, 3, 6, 9, 0, 14, 18, 26, 0, 25, 31, 40, 0, 40, 45, 55, 0, 58, 66, 78}
Constructors
- .new(key, val, dic, ptag : String, prio : Int32)
- .new(char : Char, idx = 0)
- .new(key, val = @key, tag = PosTag::Unkn, dic = 0, idx = 0, prio = 2)
Class Method Summary
Instance Method Summary
- #apply_cap!(cap : Bool = false) : Bool
- #blank?
- #clone!(idx : Int32 = @idx) : self
- #cost : Int32
- #each(&)
- #ends_with?(key : String | Char)
- #find_by_key(key : String | Char)
-
#inspect(io : IO = STDOUT, pad = -1) : Nil
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #key_in?(*keys : String)
- #key_is?(key : String)
- #lit_str?
- #modifier?
- #space_before?(prev : MtTerm) : Bool
- #space_before?(prev : MtNode) : Bool
- #starts_with?(key : String | Char)
- #to_int?
- #to_mtl(io : IO) : Nil
- #to_txt(io : IO) : Nil
Instance methods inherited from class QT::MtNode
apply_cap!(cap : Bool)
apply_cap!,
aspect?
aspect?,
dic : Int32
dic,
dic=(dic : Int32)
dic=,
ends_with?(key : String | Char)
ends_with?,
find_by_key(key : String | Char)
find_by_key,
fix_prev!(prev : Nil) : Nilfix_prev!(prev : MtNode) : Nil fix_prev!, fix_succ!(succ : Nil) : Nil
fix_succ!(succ : MtNode) : Nil fix_succ!, idx : Int32 idx, idx=(idx : Int32) idx=, inspect(io : IO) inspect, key : String key, key=(key : String) key=, key_in?(*keys : String) key_in?, key_is?(key : String) key_is?, maybe_adjt? : Bool maybe_adjt?, maybe_verb? : Bool maybe_verb?, prev : MtNode prev, prev=(prev : MtNode) prev=, prev? : MtNode | Nil
prev?(&) prev?, set!(val : String, tag : PosTag) : self
set!(val : String) : self
set!(tag : PosTag) : self set!, space_before?(prev : Nil) : Bool
space_before?(prev : MtNode) space_before?, starts_with?(key : String | Char) starts_with?, succ : MtNode succ, succ=(succ : MtNode) succ=, succ? : MtNode | Nil
succ?(&) succ?, tag : PosTag tag, tag=(tag : PosTag) tag=, to_mtl(io : IO) to_mtl, to_txt(io : IO) to_txt, val : String val, val=(val : String) val=, vcompl? vcompl?
Macros inherited from class QT::MtNode
method_missing(call)
method_missing
Constructor Detail
Class Method Detail
Instance Method Detail
Description copied from class Reference
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>