Skip to content

Commit bd2c661

Browse files
committed
Passing options as an argument to initializer instead of is_recursive,
1 parent 852f0e3 commit bd2c661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ostruct.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class OpenStruct
8787
#
8888
# data # => #<OpenStruct country="Australia", capital="Canberra">
8989
#
90-
def initialize(hash=nil, is_recursive=false)
90+
def initialize(hash=nil, is_recursive: false)
9191
@table = {}
9292
@recursive = is_recursive
9393
if hash

0 commit comments

Comments
 (0)