aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/named_function.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/named_function.rb')
-rw-r--r--lib/arel/nodes/named_function.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/arel/nodes/named_function.rb b/lib/arel/nodes/named_function.rb
new file mode 100644
index 0000000000..56669bf858
--- /dev/null
+++ b/lib/arel/nodes/named_function.rb
@@ -0,0 +1,12 @@
+module Arel
+ module Nodes
+ class NamedFunction < Arel::Nodes::Function
+ attr_accessor :name
+
+ def initialize name, expr, aliaz = nil
+ super(expr, aliaz)
+ @name = name
+ end
+ end
+ end
+end