lib/zenlish/feature/boolean_domain.rb in zenlish-0.2.04 vs lib/zenlish/feature/boolean_domain.rb in zenlish-0.2.05
- old
+ new
@@ -12,9 +12,13 @@
end
def include?(aValue)
aValue.kind_of?(TrueClass) || aValue.kind_of?(FalseClass)
end
+
+ def to_a
+ [false, true]
+ end
private
def validated_value(aValue)
if not aValue.is_a?(FalseClass) and not aValue.is_a?(TrueClass)