Class: Preprocessor::FileMacro
- Inherits:
-
Object
- Object
- Preprocessor::FileMacro
- Defined in:
- lib/caphir/preprocessor.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ FileMacro
constructor
A new instance of FileMacro.
- #takes_args? ⇒ Boolean
- #value(*args) ⇒ Object
Constructor Details
#initialize(source) ⇒ FileMacro
Returns a new instance of FileMacro.
21 |
# File 'lib/caphir/preprocessor.rb', line 21 def initialize(source); @source = source end |
Instance Method Details
#takes_args? ⇒ Boolean
22 |
# File 'lib/caphir/preprocessor.rb', line 22 def takes_args?; false end |
#value(*args) ⇒ Object
23 |
# File 'lib/caphir/preprocessor.rb', line 23 def value(*args); [[:STRING, @source.file.inspect]] end |