Class: Brevity::NumOnlyNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Brevity::NumOnlyNode
- Defined in:
- lib/brevity/parsing/note/duration_nodes.rb
Instance Method Summary collapse
Instance Method Details
#to_r ⇒ Object
9 10 11 |
# File 'lib/brevity/parsing/note/duration_nodes.rb', line 9 def to_r Rational(numerator.text_value.to_i,1) end |