Class: RSS::Element
- Inherits:
-
Object
show all
- Defined in:
- lib/rss/opds.rb
Class Method Summary
collapse
Class Method Details
.def_corresponded_attr_reader(name, type = nil) ⇒ Object
59
60
61
62
63
64
65
66
|
# File 'lib/rss/opds.rb', line 59
def def_corresponded_attr_reader(name, type=nil)
case type
when :true_nil
true_nil_attr_reader name, type
else
name, type
end
end
|
.def_corresponded_attr_writer(name, type = nil, disp_name = nil) ⇒ Object
48
49
50
51
52
53
54
55
56
|
# File 'lib/rss/opds.rb', line 48
def def_corresponded_attr_writer(name, type=nil, disp_name=nil)
disp_name ||= name
case type
when :true_nil
true_nil_writer name, disp_name
else
name, type, disp_name
end
end
|
58
|
# File 'lib/rss/opds.rb', line 58
alias def_corresponded_attr_reader
|
47
|
# File 'lib/rss/opds.rb', line 47
alias def_corresponded_attr_writer
|