Sha256: 2f63de4e5fdebff6601d8354eb43ed7c47d606b3dd5b9804b92125c305199584
Contents?: true
Size: 800 Bytes
Versions: 13
Compression:
Stored size: 800 Bytes
Contents
class Remailer::Interpreter::StateProxy STATIC_CLASSES = [ String, Fixnum, NilClass, TrueClass, FalseClass, Float ].freeze def initialize(options, &block) @options = options instance_eval(&block) if (block_given?) end def parse(spec = nil, &block) @options[:parser] = Remailer::Interpreter.parse(spec, &block) end def enter(&block) (@options[:enter] ||= [ ]) << block end def interpret(response, &block) (@options[:interpret] ||= [ ]) << [ response, block ] end def default(&block) (@options[:default] ||= [ ]) << block end def leave(&block) (@options[:leave] ||= [ ]) << block end def terminate(&block) (@options[:terminate] ||= [ ]) << block end protected def rebind(options) @options = options end end
Version data entries
13 entries across 13 versions & 1 rubygems