class Cmds::Navigatable

Direct Known Subclasses

Defined in:

cmds/navigatable.cr

Constant Summary

TEMPLATES = Hash(String, String).new

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(**opts) #

[View source]

Class Method Detail

def self.template(err) : String #

[View source]

Instance Method Detail

def exit_code : Int32 #

def exit_code=(v : Int32) : Int32 #

def exit_code=(v : Nil) #

nil assignments are always ignored


def exit_code? : Int32 | Nil #

def navigate #

[View source]
def set(**opts) #

[View source]
def template #

[View source]
def vars : Hash(String, String) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def vars=(v : Hash(String, String)) : Hash(String, String) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def vars=(v : Nil) #

nil assignments are always ignored


def vars? : Hash(String, String) | Nil #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


Macro Detail

macro navigate(tmpl) #

[View source]