Always use class.name to build inspect strings
This commit is contained in:
parent
6a1ad36fbd
commit
fbefa76ce2
@ -55,7 +55,7 @@ class Dependency
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class}: #{name.inspect} #{tags.inspect}>"
|
"#<#{self.class.name}: #{name.inspect} #{tags.inspect}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Define marshaling semantics because we cannot serialize @env_proc
|
# Define marshaling semantics because we cannot serialize @env_proc
|
||||||
|
|||||||
@ -80,7 +80,7 @@ class DependencyCollector
|
|||||||
when Class
|
when Class
|
||||||
parse_class_spec(spec, tags)
|
parse_class_spec(spec, tags)
|
||||||
else
|
else
|
||||||
raise TypeError, "Unsupported type #{spec.class} for #{spec.inspect}"
|
raise TypeError, "Unsupported type #{spec.class.name} for #{spec.inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class Option
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class}: #{flag.inspect}>"
|
"#<#{self.class.name}: #{flag.inspect}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -115,7 +115,7 @@ class Options
|
|||||||
alias_method :to_ary, :to_a
|
alias_method :to_ary, :to_a
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class}: #{to_a.inspect}>"
|
"#<#{self.class.name}: #{to_a.inspect}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.coerce(arg)
|
def self.coerce(arg)
|
||||||
|
|||||||
@ -79,7 +79,7 @@ class IOPatch < Patch
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class}: #{strip.inspect}>"
|
"#<#{self.class.name}: #{strip.inspect}>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ class ExternalPatch < Patch
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class}: #{strip.inspect} #{url.inspect}>"
|
"#<#{self.class.name}: #{strip.inspect} #{url.inspect}>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,7 @@ class Requirement
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class}: #{name.inspect} #{tags.inspect}>"
|
"#<#{self.class.name}: #{name.inspect} #{tags.inspect}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_dependency
|
def to_dependency
|
||||||
|
|||||||
@ -11,7 +11,7 @@ class Version
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class} #{value.inspect}>"
|
"#<#{self.class.name} #{value.inspect}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
@ -36,7 +36,7 @@ class Version
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class}>"
|
"#<#{self.class.name}>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user