Rename to_hash method
This commit is contained in:
parent
3fd1e914fd
commit
49bae9b619
@ -130,7 +130,7 @@ module Hbc
|
||||
end
|
||||
end
|
||||
|
||||
def to_hash
|
||||
def to_h
|
||||
{
|
||||
"name" => name,
|
||||
"homepage" => homepage,
|
||||
|
||||
@ -12,7 +12,7 @@ module Hbc
|
||||
|
||||
def run
|
||||
if json == "v1"
|
||||
puts JSON.generate(casks.map(&:to_hash))
|
||||
puts JSON.generate(casks.map(&:to_h))
|
||||
else
|
||||
casks.each do |cask|
|
||||
odebug "Getting info for Cask #{cask}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user