Class: Preprocessor::LineMacro

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

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ LineMacro

Returns a new instance of LineMacro.


27
# File 'lib/caphir/preprocessor.rb', line 27

def initialize(source); @source = source end

Instance Method Details

#takes_args?Boolean

Returns:

  • (Boolean)

28
# File 'lib/caphir/preprocessor.rb', line 28

def takes_args?; false end

#value(*args) ⇒ Object


29
# File 'lib/caphir/preprocessor.rb', line 29

def value(*args); [[:CONSTNAT, @source.line.to_s]] end