Class: RSS::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/rss/opds.rb

Direct Known Subclasses

Atom::Feed::Link, OPDS::Price

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
    rss_def_corresponded_attr_reader 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
    rss_def_corresponded_attr_writer name, type, disp_name
  end
end

.rss_def_corresponded_attr_readerObject



58
# File 'lib/rss/opds.rb', line 58

alias rss_def_corresponded_attr_reader def_corresponded_attr_reader

.rss_def_corresponded_attr_writerObject



47
# File 'lib/rss/opds.rb', line 47

alias rss_def_corresponded_attr_writer def_corresponded_attr_writer