Class: Arel::Nodes::Factorial
- Defined in:
- lib/arel/extensions/factorial.rb
Overview
Instance Attribute Summary collapse
-
#expr ⇒ Object
Returns the value of attribute expr.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize(expr, prefix) ⇒ Factorial
constructor
A new instance of Factorial.
Methods inherited from Node
Constructor Details
#initialize(expr, prefix) ⇒ Factorial
Returns a new instance of Factorial.
11 12 13 14 |
# File 'lib/arel/extensions/factorial.rb', line 11 def initialize(expr, prefix) @expr = expr @prefix = prefix end |
Instance Attribute Details
#expr ⇒ Object
Returns the value of attribute expr.
9 10 11 |
# File 'lib/arel/extensions/factorial.rb', line 9 def expr @expr end |
#prefix ⇒ Object
Returns the value of attribute prefix.
8 9 10 |
# File 'lib/arel/extensions/factorial.rb', line 8 def prefix @prefix end |