class Crystal::Macros::RegexLiteral

Overview

A regular expression literal.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def options : ArrayLiteral(SymbolLiteral)Source

Similar to Regex#options, but returns an array of symbols such as [:i, :m, :x]

def source : StringLiteral | StringInterpolationSource

Similar to Regex#source.

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Crystal/Macros/RegexLiteral.html