class Pakyow::Presenter::Attributes::String

Wraps the value for a string-type view attribute (e.g. href).

Behaves just like a normal String.

Public Class Methods

parse(value) click to toggle source
# File lib/pakyow/presenter/attributes/string.rb, line 31
def parse(value)
  new(ensure_html_safety(value.to_s))
end

Public Instance Methods

to_s() click to toggle source
# File lib/pakyow/presenter/attributes/string.rb, line 20
def to_s
  @value
end
to_str() click to toggle source
# File lib/pakyow/presenter/attributes/string.rb, line 24
def to_str
  to_s
end