Sha256: 9cb5b8db56aec0e4b7ad855ebc63b5c208cbd48561fe6eea0dcc5ae455e57aab
Contents?: true
Size: 372 Bytes
Versions: 14
Compression:
Stored size: 372 Bytes
Contents
module NcodeSyosetu module Model class Novel attr_accessor :toc, :episodes def initialize(toc, episodes) @toc = toc @episodes = episodes end [:title, :author, :abstract, :url].each do |method| class_eval <<-EOS def #{method} @toc.#{method} end EOS end end end end
Version data entries
14 entries across 14 versions & 2 rubygems