class PivotalToPdf::Text

Attributes

string[R]

Public Class Methods

formatting_classes() click to toggle source
# File lib/pivotal_to_pdf/text.rb, line 4
def formatting_classes
  [ TextFormatters::SimpleMarkup ]
end
new(string) click to toggle source
# File lib/pivotal_to_pdf/text.rb, line 12
def initialize(string)
  @string = string
end

Public Instance Methods

==(other) click to toggle source
# File lib/pivotal_to_pdf/text.rb, line 16
def ==(other)
  string == other.string
end
hash() click to toggle source
# File lib/pivotal_to_pdf/text.rb, line 20
def hash
  string.hash
end
to_s() click to toggle source
# File lib/pivotal_to_pdf/text.rb, line 24
def to_s
  output = string
  self.class.formatting_classes.each do |klass|
    output = klass.new(output).output
  end
  output
end