class RBS::Prototype::RB::Context
公共类方法
initial(namespace: Namespace.root) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/prototype/rb.rb, line 11 def self.initial(namespace: Namespace.root) self.new(module_function: false, singleton: false, namespace: namespace, in_def: false) end
公共实例方法
attribute_kind() 点击以切换源代码
# File rbs-3.8.0/lib/rbs/prototype/rb.rb, line 25 def attribute_kind if singleton :singleton else :instance end end
enter_namespace(namespace) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/prototype/rb.rb, line 33 def enter_namespace(namespace) Context.initial(namespace: self.namespace + namespace) end
method_kind() 点击以切换源代码
# File rbs-3.8.0/lib/rbs/prototype/rb.rb, line 15 def method_kind if singleton :singleton elsif module_function :singleton_instance else :instance end end
update(module_function: self.module_function, singleton: self.singleton, in_def: self.in_def) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/prototype/rb.rb, line 37 def update(module_function: self.module_function, singleton: self.singleton, in_def: self.in_def) Context.new(module_function: module_function, singleton: singleton, namespace: namespace, in_def: in_def) end