class Coppertone::MacroString::MacroLiteral
A internal class that represents a fixed string in the macro template, whose value will not depend on the SPF request context.
Public Class Methods
new(s)
click to toggle source
# File lib/coppertone/macro_string/macro_literal.rb, line 6 def initialize(s) @str = s end
Public Instance Methods
==(other)
click to toggle source
# File lib/coppertone/macro_string/macro_literal.rb, line 18 def ==(other) return false unless other.instance_of? self.class to_s == other.to_s end
expand(_context, _request = nil)
click to toggle source
# File lib/coppertone/macro_string/macro_literal.rb, line 10 def expand(_context, _request = nil) @str end
to_s()
click to toggle source
# File lib/coppertone/macro_string/macro_literal.rb, line 14 def to_s @str end