Class: Ronin::Code::SQL::Function
- Inherits:
-
Object
- Object
- Ronin::Code::SQL::Function
- Defined in:
- lib/ronin/code/sql/function.rb
Overview
Represents a SQL function call.
Instance Attribute Summary collapse
-
#arguments ⇒ Array
readonly
The function's arguments.
-
#name ⇒ Symbol
readonly
The function's name.
Instance Method Summary collapse
-
#initialize(name, *arguments) ⇒ Function
constructor
Creates a new Function object.
Methods included from Emittable
#emitter, #inspect, #to_s, #to_sql
Methods included from Operators
#!, #!=, #%, #&, #*, #+, #+@, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #and, #as, #glob, #in, #is, #is_not, #like, #match, #not, #or, #regexp, #|, #~
Constructor Details
#initialize(name, *arguments) ⇒ Function
Creates a new Function object.
56 57 58 59 |
# File 'lib/ronin/code/sql/function.rb', line 56 def initialize(name,*arguments) @name = name @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Array (readonly)
The function's arguments.
45 46 47 |
# File 'lib/ronin/code/sql/function.rb', line 45 def arguments @arguments end |
#name ⇒ Symbol (readonly)
The function's name.
40 41 42 |
# File 'lib/ronin/code/sql/function.rb', line 40 def name @name end |