summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarkus Reiter <me@reitermark.us>2017-05-06 20:46:14 +0200
committerMarkus Reiter <me@reitermark.us>2017-05-06 23:04:06 +0200
commit4b9bb638c4dd1198141f6c0d986476b3ba07df3a (patch)
tree28950123dc9df4dff6496b590433fbc768fb4bd1 /lib
parentcc2b6f24436439ddffda62d9c85d295da1316d18 (diff)
downloadplist-4b9bb638c4dd1198141f6c0d986476b3ba07df3a.tar.gz
Fix comment indentation.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/plist/parser.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb
index 4835f8b..9be3e23 100755
--- a/lib/plist/parser.rb
+++ b/lib/plist/parser.rb
@@ -13,25 +13,25 @@
#
# r = Plist.parse_xml(filename_or_xml)
module Plist
-# Note that I don't use these two elements much:
-#
-# + Date elements are returned as DateTime objects.
-# + Data elements are implemented as Tempfiles
-#
-# Plist.parse_xml will blow up if it encounters a Date element.
-# If you encounter such an error, or if you have a Date element which
-# can't be parsed into a Time object, please send your plist file to
-# plist@hexane.org so that I can implement the proper support.
+ # Note that I don't use these two elements much:
+ #
+ # + Date elements are returned as DateTime objects.
+ # + Data elements are implemented as Tempfiles
+ #
+ # Plist.parse_xml will blow up if it encounters a Date element.
+ # If you encounter such an error, or if you have a Date element which
+ # can't be parsed into a Time object, please send your plist file to
+ # plist@hexane.org so that I can implement the proper support.
def self.parse_xml(filename_or_xml)
listener = Listener.new
- #parser = REXML::Parsers::StreamParser.new(File.new(filename), listener)
+ # parser = REXML::Parsers::StreamParser.new(File.new(filename), listener)
parser = StreamParser.new(filename_or_xml, listener)
parser.parse
listener.result
end
class Listener
- #include REXML::StreamListener
+ # include REXML::StreamListener
attr_accessor :result, :open