Sha256: 8c6c35877a21f1a760dd34bae2e965a65c637c59be612a820b833cbe49719e56

Contents?: true

Size: 444 Bytes

Versions: 6

Compression:

Stored size: 444 Bytes

Contents

module RbGCCXML

  # Represents a <Method>, which are class instance methods.
  class Method < Function

    # Is this method static?
    def static?
      attributes["static"] == "1"
    end

    # Is this a virtual method?
    def virtual?
      attributes["virtual"] == "1"
    end

    # Is this a pure virtual method? A purely virtual method has no body.
    def purely_virtual?
      attributes["pure_virtual"] == "1"
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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