abstract class Optarg::Parser
- Optarg::Parser
- Reference
- Object
Defined in:
lib/parser.crClass Method Summary
-
.after_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.after_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.after_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a callback for the validate group.
-
.around_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.around_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.around_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a callback for the validate group.
-
.before_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.before_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.before_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a callback for the validate group.
-
.on_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.on_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a callback for the validate group.
-
.on_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a callback for the validate group.
Macro Summary
-
define_callback_group(name, proc_type = ::Proc(::Nil))
Defines a new callback group.
-
inherit_callback_group(name, proc_type = ::Proc(::Nil))
Inherits an existing callback group that is defined in its ancestor class.
Instance Method Summary
-
#after_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#after_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#after_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a dynamic callback for the validate group.
-
#around_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#around_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#around_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a dynamic callback for the validate group.
-
#before_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#before_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#before_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a dynamic callback for the validate group.
-
#callback_results : Hash(String, Callback::ResultSet(Nil))
Returns callback results.
-
#callback_results_for_validate
Returns callback results of the validate group.
-
#data : Model
Returns a target model instance.
-
#invalidate!(message : String)
Creates and raises a new
ValidationError
with the message. -
#on_validate(name, proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#on_validate(proc : Proc(Optarg::Parser, Model, Nil))
Registers a dynamic callback for the validate group.
-
#on_validate(name = nil, &block : Optarg::Parser, Model -> Nil)
Registers a dynamic callback for the validate group.
-
#run_callbacks_for_validate(*args, &)
Invokes all callbacks of the validate group.
Class Method Detail
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Macro Detail
Defines a new callback group.
This macro is automatically defined by the Crystal Callback library.
Inherits an existing callback group that is defined in its ancestor class.
This macro is automatically defined by the Crystal Callback library.
Instance Method Detail
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Returns callback results.
This method is automatically defined by the Crystal Callback library.
Returns callback results of the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the validate group.
This method is automatically defined by the Crystal Callback library.
Invokes all callbacks of the validate group.
This method is automatically defined by the Crystal Callback library.