struct
Can::SafeString
- Can::SafeString
- Struct
- Value
- Object
Overview
Marks a string as pre-escaped/trusted. Interpolations that evaluate to a
SafeString are emitted verbatim instead of HTML-escaped.
Defined in:
can.crConstructors
Instance Method Summary
-
#to_s(io : IO) : Nil
Same as
#inspect(io). -
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #value : String
Constructor Detail
Instance Method Detail
def to_s : String
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.