Class: Grammar::Span

Inherits:
Object
  • Object
show all
Defined in:
lib/zipf/grammar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left = nil, right = nil) ⇒ Span

Returns a new instance of Span.



71
72
73
74
# File 'lib/zipf/grammar.rb', line 71

def initialize left=nil, right=nil
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject

Returns the value of attribute left.



69
70
71
# File 'lib/zipf/grammar.rb', line 69

def left
  @left
end

#rightObject

Returns the value of attribute right.



69
70
71
# File 'lib/zipf/grammar.rb', line 69

def right
  @right
end