Sha256: 659ca8de6a75b50bbe64f3675cc52b18702d4ecc2821af2f4a7b6f91e1aa47ce
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
=begin Copyright 2011 Shane Brinkman-Davis See README for licence information. http://babel-bridge.rubyforge.org/ =end module BabelBridge # used for String and Regexp PatternElements # not subclassed class TerminalNode < Node attr_accessor :pattern def initialize(parent,range,pattern) node_init(parent) self.offset = range.min self.match_length = range.max-range.min self.pattern = pattern end def inspect(options={}) "#{text.inspect}" unless !options[:verbose] && text[/^\s*$/] # if only show whitespace matches if verbose end def matches; []; end end end
Version data entries
5 entries across 5 versions & 1 rubygems