class Can::AST::Param

Overview

Parameter declaration from a component definition.

Required params carry a #type; optional params carry the default Crystal expression in #default.

Defined in:

can/ast.cr

Constructors

Instance Method Summary

Instance methods inherited from class Can::AST::Node

column : Int32 column, column=(column : Int32) column=, line : Int32 line, line=(line : Int32) line=

Constructor methods inherited from class Can::AST::Node

new(line : Int32 = 0, column : Int32 = 0) new

Constructor Detail

def self.new(name : String, type : String, default : String | Nil = nil, line = 0, column = 0) #

[View source]

Instance Method Detail

def default : String | Nil #

[View source]
def default=(default : String | Nil) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]