Skip to content

Commit ea39ef9

Browse files
committed
Merge pull request #2 from motoso/hotfix
Restore methods to work 'Qiita Setup' nicely
2 parents c5ee44f + 183fcc0 commit ea39ef9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/qiita/config.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ def load!(file_path="")
3030
end
3131
end
3232

33+
def update!(attributes={})
34+
attributes_with!(attributes)
35+
end
36+
37+
def attributes_with!(attributes={})
38+
attributes.each do |key, value|
39+
self.send(key.to_s+"=", value) if self.respond_to?(key.to_s+"=")
40+
end
41+
end
42+
3343
def save(file_path="")
3444
file_path = Qiita::CONFIG_FILE if file_path.empty?
3545

0 commit comments

Comments
 (0)