module Autoini::InlineComment

Attributes

comment[RW]

Public Class Methods

included(base) click to toggle source
# File lib/autoini/inline_comment.rb, line 3
def self.included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

line_comment(text) click to toggle source
# File lib/autoini/inline_comment.rb, line 9
def line_comment(text)
  return text unless comment
  "#{text} #{Comment.new(comment).to_s}"
end