funkr 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/funkr/types/simple_record.rb +5 -0
- data/lib/funkr/version.rb +1 -1
- data/test/tests.rb +2 -0
- metadata +2 -2
data/lib/funkr/version.rb
CHANGED
data/test/tests.rb
CHANGED
@@ -118,6 +118,8 @@ puts format("%s is now %s and lives in %s", name, age, city)
|
|
118
118
|
puts format("%s is back to %s and really lives in %s", r.name, r.age, r.city)
|
119
119
|
r.name = "Paul R"
|
120
120
|
puts r.to_s
|
121
|
+
r.update!(name: "Paul")
|
122
|
+
puts r.to_s
|
121
123
|
|
122
124
|
class Person < SimpleRecord; fields :name, :age, :city; end
|
123
125
|
r = Person.new(name: "Paul", age: 27, city: "Rennes")
|