Class: Godot::Object
Constant Summary collapse
- VARIANT_TYPE =
24
- RUBY_SCRIPT =
nil
Constants included from Godot
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Object
constructor
Stop
initialize(…)
from becomingObject(…)
(rather thanObject.new(…)
, which calls Variant#_init).
Methods inherited from Variant
#get, #key?, #method_missing, #respond_to_missing?, #set, #to_godot
Methods included from Godot
Constructor Details
#initialize ⇒ Object
Stop initialize(…)
from becoming Object(…)
(rather than Object.new(…)
, which calls Variant#_init)
18 |
# File 'lib/godot_rb/object.rb', line 18 def initialize; end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Godot::Variant
Class Method Details
.base_class_name ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/godot_rb/object.rb', line 7 def self.base_class_name if const_defined? :RUBY_SCRIPT, false # {RubyScript} class superclass&.base_class_name or StringName.new # FIXME: Object.base_class_name ends up here else # Godot native class # StringName.new(*name&.delete_prefix('Godot::')) # https://github.com/soutaro/steep/issues/926 demodulized_name = name&.delete_prefix('Godot::') demodulized_name ? StringName.new(demodulized_name) : StringName.new end end |