module Crygen::Modules::InstanceVar

Overview

Module that is used to store and add the instance variables.

Direct including types

Defined in:

modules/instance_var.cr

Instance Method Summary

Instance Method Detail

def add_instance_var(name : String, type : String, value : String) : self #

Add an argument with default value. Parameters:

  • name : String
  • type : String
  • value : String Returns: an object class itself.

[View source]
def add_instance_var(name : String, type : String) : self #

Add an argument with no default value. Parameters:

  • name : String
  • type : String Returns: an object class itself.

[View source]
def generate_instance_vars : String #

Generate the instance vars. Returns: String.


[View source]