lib/zenlish/inflect/inflection_table_builder.rb in zenlish-0.2.02 vs lib/zenlish/inflect/inflection_table_builder.rb in zenlish-0.2.03
- old
+ new
@@ -81,23 +81,27 @@
inequality_cond = NotEqualsLiteral.new(arg, aValue)
conds << inequality_cond
inequality_cond
end
-
+
def in?(*theMembers)
arg = FormalArgument.new(conds.size)
membership_cond = Membership.new(arg, theMembers)
conds << membership_cond
- membership_cond
+ membership_cond
end
def dont_care
item = UnconditionallyTrue.new
conds << item
item
+ end
+
+ def literal(aLiteral)
+ LiteralAsIs.new(aLiteral)
end
def col(aColName)
col_index = headings.find_index { |hd| hd.label == aColName }
err_msg = "Cannot find heading named '#{aColName}'."
\ No newline at end of file