funkr 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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")
|