class Jargon::Result

Defined in:

jargon/result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : JSON::Any, errors : Array(String) = [] of String, subcommand : String | Nil = nil, help_requested : Bool = false, help_subcommand : String | Nil = nil, completion_shell : String | Nil = nil) #

[View source]
def self.new(data : Hash(String, JSON::Any), errors : Array(String) = [] of String, subcommand : String | Nil = nil, help_requested : Bool = false, help_subcommand : String | Nil = nil, completion_shell : String | Nil = nil) #

[View source]

Instance Method Detail

def [](key : String) : JSON::Any #

[View source]
def []?(key : String) : JSON::Any | Nil #

[View source]
def completion_requested? : Bool #

[View source]
def completion_shell : String | Nil #

[View source]
def data : JSON::Any #

[View source]
def errors : Array(String) #

[View source]
def help_requested? : Bool #

[View source]
def help_subcommand : String | Nil #

[View source]
def subcommand : String | Nil #

[View source]
def to_json : String #

[View source]
def to_pretty_json : String #

[View source]
def valid? : Bool #

[View source]