class

String::Inquirer

Inherits Reference < Object

Wraps a string for easier equality tests.

inquirer = String::Inquirer.new("test")
inquirer.test? #=> true
inquirer.foo?  #=> false

Constants

VERSION = "0.1.0"

Constructors

new(wrapped : String)

Wraps the provided string

Source

Macros

method_missing(call)

Inspects the provided call name and raises if the call name does not finish in '?'.

Source