lib/bmg/relation.rb in bmg-0.17.8 vs lib/bmg/relation.rb in bmg-0.18.0
- old
+ new
@@ -15,9 +15,19 @@
def bind(binding)
self
end
+ def type
+ Bmg::Type::ANY
+ end
+
+ def with_type(type)
+ dup.tap{|r|
+ r.type = type
+ }
+ end
+
def with_typecheck
dup.tap{|r|
r.type = r.type.with_typecheck
}
end