Class: SQLtorial::AllDirective
- Inherits:
-
Object
- Object
- SQLtorial::AllDirective
- Defined in:
- lib/sqltorial/directives/all_directive.rb
Constant Summary collapse
- REGEXP =
/^ DIRECTIVE:\s*ALL/
Class Method Summary collapse
Instance Method Summary collapse
- #alter(query_to_md) ⇒ Object
-
#initialize(line) ⇒ AllDirective
constructor
A new instance of AllDirective.
- #inspect ⇒ Object
Constructor Details
#initialize(line) ⇒ AllDirective
Returns a new instance of AllDirective.
12 13 |
# File 'lib/sqltorial/directives/all_directive.rb', line 12 def initialize(line) end |
Class Method Details
.regexp ⇒ Object
7 8 9 |
# File 'lib/sqltorial/directives/all_directive.rb', line 7 def regexp REGEXP end |
Instance Method Details
#alter(query_to_md) ⇒ Object
15 16 17 |
# File 'lib/sqltorial/directives/all_directive.rb', line 15 def alter(query_to_md) query_to_md.row_limit = nil end |
#inspect ⇒ Object
19 20 21 |
# File 'lib/sqltorial/directives/all_directive.rb', line 19 def inspect "ALL" end |