Sha256: d7e382ff2c0d4694d30c2ea6495191ce1b8d20f135c104e76602352fe980c9e7
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
module Net class NNTP class Article attr_accessor :id, :messageid, :subject, :group attr_reader :overview_format, :bytes, :lines, :xref, :date def initialize @overview_format = %w{id} end def overview_format=(format) @overview_format = Net::NNTP.parse_overview_format format end def overview(over) over.split(/\t/).each_with_index do |value, index| ident = @overview_format[index] eval "@#{ident} = value;" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-net-nntp-0.0.2 | lib/net/nntp_article.rb |
ruby-net-nntp-0.0.3 | lib/net/nntp_article.rb |