IoWrap

Creates a sigil i that returns an IO List

~i(Hello, Johnny) == ["Hello, Johnny"]

This package was taken from Kalevala is a world building toolkit for text based games, written in Elixir by Eric Oestrich.

Here's a link to his code. https://github.com/oestrich/kalevala/blob/main/lib/kalevala/character/view.ex#L43-L85

Installation

If available in Hex, the package can be installed by adding io_wrap to your list of dependencies in mix.exs:

def deps do
  [
    {:io_wrap, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/io_wrap.