Skip to content

Commit ee2a69d

Browse files
format boolean initialization for readability
1 parent 5153a63 commit ee2a69d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/code/object/boolean.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ class Code
44
class Object
55
class Boolean < ::Code::Object
66
def initialize(*args, **_kargs, &_block)
7-
self.raw = (args.first.is_an?(Object) ? args.first.truthy? : !!args.first)
7+
self.raw =
8+
(args.first.is_an?(Object) ? args.first.truthy? : !!args.first)
89
end
910

1011
def call(**args)

0 commit comments

Comments
 (0)