Class: Sexp2Ruby::Node::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sexp2ruby/node/base.rb

Overview

A node in the AST.

Constant Summary collapse

ASSIGN_NODES =
Processor::ASSIGN_NODES
LF =
Processor::LF
LINE_LENGTH =

cutoff for one-liners

78

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(processor) ⇒ Base

Returns a new instance of Base.



32
33
34
# File 'lib/sexp2ruby/node/base.rb', line 32

def initialize(processor)
  @processor = processor
end

Instance Attribute Details

#processorObject (readonly)

Returns the value of attribute processor.



10
11
12
# File 'lib/sexp2ruby/node/base.rb', line 10

def processor
  @processor
end