Class: Racc::ParserFileGenerator::Params
- Defined in:
- lib/racc/parserfilegenerator.rb
Instance Attribute Summary collapse
-
#classname ⇒ Object
Returns the value of attribute classname.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#header ⇒ Object
Returns the value of attribute header.
-
#inner ⇒ Object
Returns the value of attribute inner.
-
#interpreter ⇒ Object
Returns the value of attribute interpreter.
-
#superclass ⇒ Object
Returns the value of attribute superclass.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Params
constructor
A new instance of Params.
Constructor Details
#initialize ⇒ Params
Returns a new instance of Params.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/racc/parserfilegenerator.rb', line 51 def initialize # Parameters derived from parser self.filename = nil self.classname = nil self.superclass = 'Racc::Parser' self.omit_action_call = true self.result_var = true self.header = [] self.inner = [] self. = [] # Parameters derived from command line options self.debug_parser = false self.convert_line = true self.convert_line_all = false self. = false self.make_executable = false self.interpreter = nil end |
Instance Attribute Details
#classname ⇒ Object
Returns the value of attribute classname.
36 37 38 |
# File 'lib/racc/parserfilegenerator.rb', line 36 def classname @classname end |
#filename ⇒ Object
Returns the value of attribute filename.
35 36 37 |
# File 'lib/racc/parserfilegenerator.rb', line 35 def filename @filename end |
#footer ⇒ Object
Returns the value of attribute footer.
42 43 44 |
# File 'lib/racc/parserfilegenerator.rb', line 42 def @footer end |
#header ⇒ Object
Returns the value of attribute header.
40 41 42 |
# File 'lib/racc/parserfilegenerator.rb', line 40 def header @header end |
#inner ⇒ Object
Returns the value of attribute inner.
41 42 43 |
# File 'lib/racc/parserfilegenerator.rb', line 41 def inner @inner end |
#interpreter ⇒ Object
Returns the value of attribute interpreter.
49 50 51 |
# File 'lib/racc/parserfilegenerator.rb', line 49 def interpreter @interpreter end |
#superclass ⇒ Object
Returns the value of attribute superclass.
37 38 39 |
# File 'lib/racc/parserfilegenerator.rb', line 37 def superclass @superclass end |
Class Method Details
.bool_attr(name) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/racc/parserfilegenerator.rb', line 23 def self.bool_attr(name) module_eval(<<-End) def #{name}? @#{name} end def #{name}=(b) @#{name} = b end End end |