class RbGCCXML::Field

Represents a <Field> node, which is a Class’s instance variable

Public Instance Methods

cpp_type() click to toggle source

Get the Node representing this field’s type

# File lib/rbgccxml/nodes/field.rb, line 7
def cpp_type
  NodeCache.find(attributes["type"])
end
to_cpp(qualified = false) click to toggle source

See RbGCCXML::Node#to_cpp

# File lib/rbgccxml/nodes/field.rb, line 13
def to_cpp(qualified = false)
  "#{self.cpp_type.to_cpp(qualified)} #{self.name}"
end