Class: Preprocessor::LineMacro
- Inherits:
-
Object
- Object
- Preprocessor::LineMacro
- Defined in:
- lib/caphir/preprocessor.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ LineMacro
constructor
A new instance of LineMacro.
- #takes_args? ⇒ Boolean
- #value(*args) ⇒ Object
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
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 |