Skip to content

Commit

Permalink
Better inspect/to_s/pp.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 9, 2016
1 parent 3d4c516 commit a93019f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 1 addition & 9 deletions lib/build/environment/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,8 @@ def []= (key, value)
@values[key] = value
end

def inspect
"#<#{self.class} #{self.to_s}>"
end

def to_s
if @parent
"#{@parent}->#{@values}"
else
@values.to_s
end
self.to_hash.to_s
end
end
end
8 changes: 0 additions & 8 deletions lib/build/environment/flatten.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ def defined
@values.select{|name,value| Define === value}
end

def inspect(output = $stdout, indent = "")
@values.each do |(key, value)|
output.puts "#{indent}#{key}: #{value}"
end

@parent.inspect(output, indent + "\t") if @parent
end

def checksum(digester: Digest::MD5.new)
checksum_recursively(digester)

Expand Down

0 comments on commit a93019f

Please sign in to comment.