lib/expresser/expression.rb
# if args is nil this is just a variable - if not it's a function
if args is nil this is just a variable - if not it's a function
if args is nil this is just a variable - if not it ' s a function
def method_missing(name, *args)
      args_as_expressions = args.map {|a| a.is_a?(Expression) ? a : cast(a)} if args
      args_as_expressions.unshift(self)
      Expression.new(nil, name, args_as_expressions)
    end
def method_missing ( name , * args ) args_as_expressions = args . map { | a | a . is_a? ( Expression ) ? a : cast ( a ) } if args args_as_expressions . unshift ( self ) Expression . new ( nil , name , args_as_expressions ) end
if args is nil this is just a variable - if not it's a function
if args is nil this is just a variable - if not it ' s a function
# p name
name
<not_specific>
args
<not_specific>