class Dhall::Builtins::Text_show

Constants

ENCODE

Protected Instance Methods

uncurried_call(text) click to toggle source
# File lib/dhall/builtins.rb, line 350
def uncurried_call(text)
        return unfill(text) unless text.is_a?(Dhall::Text)

        Dhall::Text.new(
                value: "\"#{text.to_s.gsub(
                        /["\$\\\b\f\n\r\t\u0000-\u001F]/,
                        &ENCODE
                )}\""
        )
end