class RbPlusPlus::Builders::DirectorMethodNode

Expose a director method as an instance method

Public Class Methods

new(method, parent, director) click to toggle source
# File lib/rbplusplus/builders/director_method.rb, line 7
def initialize(method, parent, director)
  super(method, parent)
  @director = director
end

Public Instance Methods

code_path() click to toggle source
# File lib/rbplusplus/builders/director_method.rb, line 12
def code_path
  cpp_name = self.code.qualified_name.split("::")[-1]
  "#{@director.qualified_name}::default_#{cpp_name}"
end