Sha256: bb958404070909328f15bcaf5640ae27d60728912942451d528064a0efa6f556

Contents?: true

Size: 419 Bytes

Versions: 9

Compression:

Stored size: 419 Bytes

Contents

module RbPlusPlus
  module Builders

    # Expose a director method as an instance method
    class DirectorMethodNode < MethodNode

      def initialize(method, parent, director)
        super(method, parent)
        @director = director
      end

      def code_path
        cpp_name = self.code.qualified_name.split("::")[-1]
        "#{@director.qualified_name}::default_#{cpp_name}"
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 lib/rbplusplus/builders/director_method.rb
rbplusplus-1.3.0 lib/rbplusplus/builders/director_method.rb
rbplusplus-1.2.1 lib/rbplusplus/builders/director_method.rb
rbplusplus-1.2.0 lib/rbplusplus/builders/director_method.rb
rbplusplus-1.1.0 lib/rbplusplus/builders/director_method.rb
rbplusplus-1.0.3 lib/rbplusplus/builders/director_method.rb
rbplusplus-1.0.1 lib/rbplusplus/builders/director_method.rb
rbplusplus-1.0 lib/rbplusplus/builders/director_method.rb
rbplusplus-0.9.1 lib/rbplusplus/builders/director_method.rb