class Framecurve::Comment
Represents a framecurve comment
Attributes
text[R]
Public Class Methods
new(text)
click to toggle source
# File lib/framecurve/comment.rb, line 6 def initialize(text) @text = text end
Public Instance Methods
<=>(another)
click to toggle source
# File lib/framecurve/comment.rb, line 22 def <=>(another) to_s <=> another.to_s end
comment?()
click to toggle source
# File lib/framecurve/comment.rb, line 14 def comment? true end
to_s()
click to toggle source
# File lib/framecurve/comment.rb, line 18 def to_s ['#', text.to_s.gsub(/\r\n?/, '')].join(' ') end
tuple?()
click to toggle source
# File lib/framecurve/comment.rb, line 10 def tuple? false end