Class: OpenVPNConfigurator::Comment
- Inherits:
-
Object
- Object
- OpenVPNConfigurator::Comment
- Defined in:
- lib/openvpn_configurator/comment.rb
Overview
Represents a comment to be inserted into the configuration file
Instance Method Summary collapse
-
#initialize(message) ⇒ Comment
constructor
A new instance of Comment.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ Comment
Returns a new instance of Comment.
5 6 7 |
# File 'lib/openvpn_configurator/comment.rb', line 5 def initialize() @message = end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/openvpn_configurator/comment.rb', line 10 def to_s "#{@message.gsub("\n", ' ')}" end |