Sha256: edf4ab69010805365c5326b903a77bf05c9e472ef9d20b154dc417065a957026

Contents?: true

Size: 468 Bytes

Versions: 4

Compression:

Stored size: 468 Bytes

Contents

# File: wildcard.rb

require_relative 'atomic_expression'	# Access the superclass

module Regex # This module is used as a namespace

# A wildcard matches any character (except for the newline).
class Wildcard < AtomicExpression

	# Constructor
	def initialize()
		super
	end

  protected

	# Conversion method re-definition.
	# Purpose: Return the String representation of the expression.
	def text_repr()
		return '.'
	end
	
end # class
	
end # module

# End of file

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rley-0.6.00 examples/general/SRL/lib/regex/wildcard.rb
rley-0.5.14 examples/general/SRL/lib/regex/wildcard.rb
rley-0.5.13 examples/general/SRL/lib/regex/wildcard.rb
rley-0.5.12 examples/general/SRL/lib/regex/wildcard.rb