Trying to produce shorter/prettier (no accounting for taste) inspect output and overriding TrueClass/FalseClass#inspect breaks "optimisation" with something like:
undefined local variable or method `⊤' for #<Haml::AttributeCompiler:0x007f1a0304c648>
in Haml::AttributeCompiler#static_build.
I have true/false represented by "⊤" and "⊥" via
TrueClass.class_eval do
def inspect
"⊤"
end
end
FalseClass.class_eval do
def inspect
"⊥"
end
end
Trying to produce shorter/prettier (no accounting for taste) inspect output and overriding
TrueClass/FalseClass#inspectbreaks "optimisation" with something like:in
Haml::AttributeCompiler#static_build.I have true/false represented by "⊤" and "⊥" via