Sha256: aa82431d4f660efcca1773ec952ddd4f49fbaa526a53a6ee57abbf9518b7c504

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

module RbGCCXML

  # Represents a <Field> node, which is a Class's instance variable
  class Field < Node

    # Get the Node representing this field's type
    def cpp_type
      NodeCache.find(attributes["type"])
    end
    once :cpp_type

    # See Node#to_cpp
    def to_cpp(qualified = false)
      "#{self.cpp_type.to_cpp(qualified)} #{self.name}"
    end
    once :to_cpp

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbgccxml-1.1.0 lib/rbgccxml/nodes/field.rb
rbgccxml-1.0.4 lib/rbgccxml/nodes/field.rb
rbgccxml-1.0.3 lib/rbgccxml/nodes/field.rb
rbgccxml-1.0.2 lib/rbgccxml/nodes/field.rb
rbgccxml-1.0.1 lib/rbgccxml/nodes/field.rb
rbgccxml-1.0 lib/rbgccxml/nodes/field.rb