Class: ERLE::Atom

Inherits:
Term
  • Object
show all
Defined in:
lib/erle/elements/atom.rb

Constant Summary collapse

INNER_PATTERN =

pattern /^[a-z]*/ # TODO: Handle uppercase

/(#{@unopened_pattern}|#{@enclosed_pattern}|)/

Instance Attribute Summary

Attributes inherited from Term

#input, #output

Instance Method Summary collapse

Methods inherited from Term

enclosure, #initialize, pattern, to_ruby, until_any_closing

Constructor Details

This class inherits a constructor from ERLE::Term

Instance Method Details

#to_rubyObject



16
17
18
# File 'lib/erle/elements/atom.rb', line 16

def to_ruby
  @output ||= @input
end