summaryrefslogtreecommitdiffstats
path: root/lib/rss/utils.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-17 10:13:25 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-17 10:13:25 +0000
commitc3adb681b3e5281044d5bebd91851fd9afea0b8a (patch)
tree847090e856c9901ab2cc19251c179b9b0985e65b /lib/rss/utils.rb
parent8c9c2f26929b0f077188546492d38dddaa966b9a (diff)
downloadruby-c3adb681b3e5281044d5bebd91851fd9afea0b8a.tar.gz
ruby-c3adb681b3e5281044d5bebd91851fd9afea0b8a.tar.xz
ruby-c3adb681b3e5281044d5bebd91851fd9afea0b8a.zip
* lib/rss, test/rss:
- supported Atom. - bumped version 0.1.6 to 0.1.7. * sample/rss/convert.rb: added new sample. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/utils.rb')
-rw-r--r--lib/rss/utils.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/rss/utils.rb b/lib/rss/utils.rb
index 0286becf0..031ff3072 100644
--- a/lib/rss/utils.rb
+++ b/lib/rss/utils.rb
@@ -1,7 +1,5 @@
module RSS
-
module Utils
-
module_function
def to_class_name(name)
name.split(/_/).collect do |part|
@@ -26,6 +24,9 @@ module RSS
klass.new(value)
end
end
- end
+ def element_initialize_arguments?(args)
+ [true, false].include?(args[0]) and args[1].is_a?(Hash)
+ end
+ end
end