Sha256: b476073bddd51c3d9d2e62bde969a52a06f7063d4790979c4762438839d21a9c
Contents?: true
Size: 263 Bytes
Versions: 10
Compression:
Stored size: 263 Bytes
Contents
module Shinmun class Comment attr_accessor :time, :name, :email, :website, :text def initialize(attributes) for k, v in attributes send("#{k}=", v) if respond_to?("#{k}=") end self.time ||= Time.now end end end
Version data entries
10 entries across 10 versions & 2 rubygems