RubyCall::RWrap
Constants
OPERATOR_NAMES = {
"+": "+",
"-": "-",
"*": "*",
"/": "/",
"%": "%",
"**": "**",
"<<": "<<",
">>": ">>",
"&": "&",
"|": "|",
"^": "^",
}
Constructors
Class methods
to_arg(v) : RbArg
NamedTuple kwargs → Hash(String, RbArg). Литералы приходят как Int32/Float32 — нормализуем в Int64/Float64.
Instance methods
!=(other) : Bool
Returns true if this object is not equal to other.
By default this method is implemented as !(self == other)
so there's no need to override this unless there's a more efficient
way to do it.
%(other) : RbValue
Source&(other) : RbValue
Source*(other) : RbValue
Source**(other) : RbValue
Source+(other) : RbValue
Source-(other) : RbValue
Source/(other) : RbValue
Source<<(other) : RbValue
Source>>(other) : RbValue
Source[](*keys) : RbValue
Source[]=(*keys, value) : RbValue
Source^(other) : RbValue
SourceRuby-семантика: метод с 0 аргументов == голый атрибут → просто funcall.
|(other) : RbValue
Sourcefinalize
SourceAppends 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>
ruby_class_name
SourceAppends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
value
SourceMacros
method_missing(call)
Source