Class: Querly::Preprocessor
- Inherits:
-
Object
- Object
- Querly::Preprocessor
- Defined in:
- lib/querly/preprocessor.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#ext ⇒ Object
readonly
Returns the value of attribute ext.
Instance Method Summary collapse
-
#initialize(ext:, command:) ⇒ Preprocessor
constructor
A new instance of Preprocessor.
- #run!(source_code) ⇒ Object
Constructor Details
#initialize(ext:, command:) ⇒ Preprocessor
Returns a new instance of Preprocessor.
16 17 18 19 |
# File 'lib/querly/preprocessor.rb', line 16 def initialize(ext:, command:) @ext = ext @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
14 15 16 |
# File 'lib/querly/preprocessor.rb', line 14 def command @command end |
#ext ⇒ Object (readonly)
Returns the value of attribute ext.
13 14 15 |
# File 'lib/querly/preprocessor.rb', line 13 def ext @ext end |