lib/rbgccxml/nodes/constructor.rb in rbgccxml-0.8 vs lib/rbgccxml/nodes/constructor.rb in rbgccxml-0.9
- old
+ new
@@ -1,9 +1,16 @@
module RbGCCXML
- # Class representing <Constructor> nodes.
+
+ # Represents a <Constructor> node.
+ #
+ # Constructors act like functions except they don't have
+ # a return value
class Constructor < Function
+
# Disabled: Constructors do not have a return_type.
def return_type
raise "There is no return_type of a constructor"
end
+
end
+
end