Sha256: ae38b8a6a07bbbb7665850bb55fbcffbf2a600f8c809ea506529080012edbde3
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
class TestClassWithAttributes include Riveter::Attributes attr_string :string, :default => 'A' attr_text :text, :default => 'b' attr_integer :integer, :default => 1 attr_decimal :decimal, :default => 9.998 attr_date :date, :default => Date.new(2010, 1, 12) attr_time :time, :default => Time.new(2010, 1, 12, 14, 56) attr_boolean :boolean, :default => true attr_enum :enum, TestEnum, :default => TestEnum::Member1 attr_array :array, :default => [1, 2, 3] attr_hash :hash, :default => {:a => :b} attr_model :model, TestModel, :default => TestModel attr_object :object, :default => 'whatever' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riveter-0.0.1 | spec/support/test_class_with_attributes.rb |