class MODL::Parser::Parsed::ParsedArrayConditionalReturn
Class to represent a parsed grammar object
Attributes
arrayItems[RW]
Public Class Methods
new(global)
click to toggle source
# File lib/modl/parser/parsed.rb, line 1104 def initialize(global) @global = global @arrayItems = [] end
Public Instance Methods
enterModl_array_conditional_return(ctx)
click to toggle source
# File lib/modl/parser/parsed.rb, line 1113 def enterModl_array_conditional_return(ctx) modl_array_item = ctx.modl_array_item return if modl_array_item.empty? modl_array_item.each do |ai| array_item = ParsedArrayItem.new @global ai.enter_rule(array_item) @arrayItems << array_item end end
extract_hash()
click to toggle source
# File lib/modl/parser/parsed.rb, line 1109 def extract_hash @arrayItems[0].arrayValueItem.text end