Method: Marvin::Parsers::Prefixes::HostMask#to_s
- Defined in:
- lib/marvin/parsers/prefixes/host_mask.rb
#to_s ⇒ Object
Converts it back to a nicer form / a string.
24 25 26 27 28 29 30 |
# File 'lib/marvin/parsers/prefixes/host_mask.rb', line 24 def to_s str = "" str << @nick.to_s str << "!#{@user}" unless @user.blank? str << "@#{@host}" unless @host.blank? str end |