Class: ArelExtensions::Nodes::Std
- Defined in:
- lib/arel_extensions/nodes/std.rb
Constant Summary collapse
- RETURN_TYPE =
:number
Instance Attribute Summary collapse
-
#unbiased_estimator ⇒ Object
Returns the value of attribute unbiased_estimator.
Instance Method Summary collapse
-
#initialize(expr) ⇒ Std
constructor
A new instance of Std.
Methods inherited from Function
#as, #convert_to_date_node, #convert_to_datetime_node, #convert_to_node, #convert_to_number, #convert_to_string_node, #expr, #left, #return_type, #right, #type_of_attribute
Methods included from Predications
#cast, #convert_to_node, #imatches, #in, #matches, #not_in, #when
Constructor Details
#initialize(expr) ⇒ Std
Returns a new instance of Std.
7 8 9 10 11 |
# File 'lib/arel_extensions/nodes/std.rb', line 7 def initialize expr col = expr.first @unbiased_estimator = expr[1] super [col] end |
Instance Attribute Details
#unbiased_estimator ⇒ Object
Returns the value of attribute unbiased_estimator.
6 7 8 |
# File 'lib/arel_extensions/nodes/std.rb', line 6 def unbiased_estimator @unbiased_estimator end |