examples/general/SRL/lib/regex/wildcard.rb in rley-0.6.00 vs examples/general/SRL/lib/regex/wildcard.rb in rley-0.6.01
- old
+ new
@@ -1,27 +1,23 @@
# File: wildcard.rb
-require_relative 'atomic_expression' # Access the superclass
+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
-# A wildcard matches any character (except for the newline).
-class Wildcard < AtomicExpression
+ protected
- # 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
-
+ # Conversion method re-definition.
+ # Purpose: Return the String representation of the expression.
+ def text_repr()
+ return '.'
+ end
+ end # class
end # module
-# End of file
\ No newline at end of file
+# End of file