Class: Mahoujin::Atoms::NonTerminal

Inherits:
Object
  • Object
show all
Defined in:
lib/mahoujin/atoms/non_terminal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ NonTerminal

Returns a new instance of NonTerminal


6
7
8
# File 'lib/mahoujin/atoms/non_terminal.rb', line 6

def initialize(content)
  @content = content.freeze
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content


4
5
6
# File 'lib/mahoujin/atoms/non_terminal.rb', line 4

def content
  @content
end