class String::Inquirer

Overview

Wraps a string for easier equality tests.

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

Defined in:

string-inquirer/version.cr
string/inquirer.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Macro Summary

Constructor Detail

def self.new(wrapped : String) #

Wraps the provided string


[View source]

Macro Detail

macro method_missing(call) #

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


[View source]