From 6afb08d814672329ea185500d105cfa85cdbb7e9 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 27 Sep 2025 20:35:09 -0300 Subject: first hugo build --- public/post/2012/01/23/juicy-code/index.html | 129 +++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 public/post/2012/01/23/juicy-code/index.html (limited to 'public/post/2012/01') diff --git a/public/post/2012/01/23/juicy-code/index.html b/public/post/2012/01/23/juicy-code/index.html new file mode 100644 index 0000000..47a30aa --- /dev/null +++ b/public/post/2012/01/23/juicy-code/index.html @@ -0,0 +1,129 @@ + + + + + + + + + + + + + Juicy Code | azuminha + + + + + + + +
+ +
+ + +
+

Juicy Code

+

Open Source

+

2012/01/23

+

+ + + Categories: Code + + + + Tags: Juicy + + +

+
+ + + +
+
+

Check out this JUICY! code:

+
def with_value_from_database(value)
+  self.class.from_database(name, value, type)
+end
+
+def with_cast_value(value)
+  self.class.with_cast_value(name, value, type)
+end
+
+def with_type(type)
+  if changed_in_place?
+    with_value_from_user(value).with_type(type)
+  else
+    self.class.new(name, value_before_type_cast, type, original_attribute)
+  end
+end
+
+ >> Home +
+
+ + + + -- cgit v1.2.3