Sha256: b19b1e86bb7079b3441e0ce378364dc3c783990e1f6c2950333787178dad5cea

Contents?: true

Size: 468 Bytes

Versions: 8

Compression:

Stored size: 468 Bytes

Contents

module RbPlusPlus
  module Builders

    class ImplicitCasterNode < Base

      def initialize(constructor, parent)
        super(constructor, parent)

        @to = parent.code.qualified_name
        @from = constructor.arguments[0].cpp_type.base_type.qualified_name
      end

      def build
      end

      def write
        if @from != @to
          registrations << "\tRice::define_implicit_cast< #{@from}, #{@to} >();"
        end
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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