Class: Ragel::Array::Replace
- Inherits:
-
Ripper::SexpBuilderPP
- Object
- Ripper::SexpBuilderPP
- Ragel::Array::Replace
- Defined in:
- lib/ragel/array/replace.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#tables ⇒ Object
readonly
Returns the value of attribute tables.
Class Method Summary collapse
Instance Method Summary collapse
- #each_table(&block) ⇒ Object
-
#initialize ⇒ Replace
constructor
A new instance of Replace.
Constructor Details
#initialize ⇒ Replace
Returns a new instance of Replace.
46 47 48 49 |
# File 'lib/ragel/array/replace.rb', line 46 def initialize(*) super @tables = [] end |
Instance Attribute Details
#tables ⇒ Object (readonly)
Returns the value of attribute tables.
44 45 46 |
# File 'lib/ragel/array/replace.rb', line 44 def tables @tables end |
Class Method Details
Instance Method Details
#each_table(&block) ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/ragel/array/replace.rb', line 51 def each_table(&block) parse if error? warn 'Invalid ruby' exit 1 end tables.reverse_each(&block) end |