Class: Rley::EngineConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/rley/engine.rb

Overview

Configuration of an Rley::Engine instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEngineConfig

Constructor with default initialization.



21
22
23
24
25
26
# File 'lib/rley/engine.rb', line 21

def initialize()
  super()
  self.parse_repr = :parse_tree
  self.repr_builder = :default
  self.diagnose = false
end

Instance Attribute Details

#diagnoseObject

Returns the value of attribute diagnose

Returns:

  • (Object)

    the current value of diagnose



12
13
14
# File 'lib/rley/engine.rb', line 12

def diagnose
  @diagnose
end

#parse_reprObject

Returns the value of attribute parse_repr

Returns:

  • (Object)

    the current value of parse_repr



12
13
14
# File 'lib/rley/engine.rb', line 12

def parse_repr
  @parse_repr
end

#repr_builderObject

Returns the value of attribute repr_builder

Returns:

  • (Object)

    the current value of repr_builder



12
13
14
# File 'lib/rley/engine.rb', line 12

def repr_builder
  @repr_builder
end