Sha256: 5e467088477d06e87587ca04b8636912d26a69bbf1a4f3e65f9d142819965c11

Contents?: true

Size: 404 Bytes

Versions: 5

Compression:

Stored size: 404 Bytes

Contents

=begin
Copyright 2011 Shane Brinkman-Davis
See README for licence information.
http://babel-bridge.rubyforge.org/
=end

module BabelBridge

# used when a PatternElement matchs the empty string
# Example: when the PatternElement is optional and doesn't match
# not subclassed
class EmptyNode < Node
  def inspect(options={})
    "EmptyNode" if options[:verbose]
  end

  def matches; [self]; end
end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
babel_bridge-0.5.5 lib/babel_bridge/nodes/empty_node.rb
babel_bridge-0.5.4 lib/babel_bridge/nodes/empty_node.rb
babel_bridge-0.5.3 lib/babel_bridge/nodes/empty_node.rb
babel_bridge-0.5.1 lib/nodes/empty_node.rb
babel_bridge-0.5.0 lib/nodes/empty_node.rb