class Cruml::Entities::MethodInfo

Overview

This consists of obtaining information about the reflected methods in a class.

Defined in:

entities/method_info.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(scope : Symbol, name : String, return_type : String) #

The scope, name and return type of a method must be passed as parameters. INFO: The special initialize method will be placed at the first element of the list.

Cruml::Entities::MethodInfo.new(:public, "major?", "Bool")

[View source]

Instance Method Detail

def name : String #

Name of a method.


[View source]
def return_type : String #

Return type of a method.


[View source]
def scope : Symbol #

Scope of a method. This latter can be :public, :protected or :private.


[View source]