class RbGCCXML::Function

Public Instance Methods

as_instance_method() click to toggle source

Sets this function to be an instance method. Useful for custom function declaration.

# File lib/rbplusplus/transformers/function.rb, line 10
def as_instance_method
  @as_method = true
  self
end
as_instance_method?() click to toggle source

Are we wrapping this function as an instance method?

# File lib/rbplusplus/transformers/function.rb, line 16
def as_instance_method?
  !!@as_method
end
purely_virtual?() click to toggle source

For Class#needs_director?

# File lib/rbplusplus/transformers/function.rb, line 21
def purely_virtual?
  false
end
static?() click to toggle source

Always true for functions, false for methods

# File lib/rbplusplus/transformers/function.rb, line 4
def static?
  !@as_method
end