15 lines
285 B
Plaintext
15 lines
285 B
Plaintext
#! @file bool.ext.sakura
|
|
#! @author John Christman (sorakatadzuma@gmail.com)
|
|
#! @copyright Malunal Studios, LLC.
|
|
#! @license MIT
|
|
#!
|
|
#!
|
|
module core;
|
|
|
|
#!
|
|
pub def bool::parse(value: &strview): bool {
|
|
return
|
|
value == "true" || value == "1" ||
|
|
value == "yes" || value == "on";
|
|
}
|