Class: Grammar::Span
- Inherits:
-
Object
- Object
- Grammar::Span
- Defined in:
- lib/zipf/grammar.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left = nil, right = nil) ⇒ Span
constructor
A new instance of Span.
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
#left ⇒ Object
Returns the value of attribute left.
69 70 71 |
# File 'lib/zipf/grammar.rb', line 69 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
69 70 71 |
# File 'lib/zipf/grammar.rb', line 69 def right @right end |