class Autoini::Comment
Attributes
comment[RW]
Public Class Methods
new(comment)
click to toggle source
# File lib/autoini/comment.rb, line 5 def initialize(comment) @comment = comment end
parse(line)
click to toggle source
# File lib/autoini/comment.rb, line 25 def self.parse(line) Comment.new(line[1..-1].join.strip) if line[0] == Autoini.comment end
parse_with_comment(line)
click to toggle source
# File lib/autoini/comment.rb, line 21 def self.parse_with_comment(line) parse(line) end
Public Instance Methods
==(e)
click to toggle source
# File lib/autoini/comment.rb, line 17 def ==(e) e.is_a?(Comment) && comment == e.comment end
to_a()
click to toggle source
# File lib/autoini/comment.rb, line 13 def to_a [] end
to_s()
click to toggle source
# File lib/autoini/comment.rb, line 9 def to_s "#{Autoini.comment} #{@comment}" end