class Serenity::Line

Attributes

text[R]

Public Class Methods

code(txt) click to toggle source
# File lib/serenity/serenity/line.rb, line 17
def self.code txt
  CodeLine.new txt
end
literal(txt) click to toggle source
# File lib/serenity/serenity/line.rb, line 25
def self.literal txt
  LiteralLine.new txt
end
new(text) click to toggle source
# File lib/serenity/serenity/line.rb, line 5
def initialize text
  @text = text
end
string(txt) click to toggle source
# File lib/serenity/serenity/line.rb, line 21
def self.string txt
  StringLine.new txt
end
text(txt) click to toggle source
# File lib/serenity/serenity/line.rb, line 13
def self.text txt
  TextLine.new txt
end

Public Instance Methods

to_s() click to toggle source
# File lib/serenity/serenity/line.rb, line 9
def to_s
  @text
end