Class: Preprocessor::FileMacro

Inherits:
Object
  • Object
show all
Defined in:
lib/caphir/preprocessor.rb

Instance Method Summary collapse

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

Returns:

  • (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