mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss.rb, lib/rss/, test/rss/:
- 0.1.9 -> 0.2.0. - supported Slash module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b528261ad8
commit
1b56bcce22
19 changed files with 296 additions and 18 deletions
|
|
@ -52,13 +52,7 @@ module RSS
|
|||
end
|
||||
|
||||
def def_csv_accessor(klass, full_name)
|
||||
klass.def_other_element_without_accessor(full_name)
|
||||
klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1)
|
||||
attr_reader :#{full_name}
|
||||
def #{full_name}=(value)
|
||||
@#{full_name} = Utils::CSV.parse(value)
|
||||
end
|
||||
EOC
|
||||
klass.def_csv_element(full_name)
|
||||
end
|
||||
|
||||
def def_elements_class_accessor(klass, full_name, full_plural_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue