Class: MassiveSitemap::Writer::String
- Defined in:
- lib/massive_sitemap/writer/string.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
- #==(other_string) ⇒ Object
- #include?(other_string) ⇒ Boolean
-
#to_s ⇒ Object
accessors to conent, mainly used in tests.
Methods inherited from Base
#close!, #current, #each, #init!, #inited?, #initialize, #print, #set
Constructor Details
This class inherits a constructor from MassiveSitemap::Writer::Base
Instance Method Details
#==(other_string) ⇒ Object
17 18 19 |
# File 'lib/massive_sitemap/writer/string.rb', line 17 def ==(other_string) to_s == other_string end |
#include?(other_string) ⇒ Boolean
21 22 23 |
# File 'lib/massive_sitemap/writer/string.rb', line 21 def include?(other_string) to_s.include?(other_string) end |
#to_s ⇒ Object
accessors to conent, mainly used in tests
13 14 15 |
# File 'lib/massive_sitemap/writer/string.rb', line 13 def to_s @string.string rescue "" end |