Class: Prism::RationalNode
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
          Node
         | |
| Instance Chain: 
          self,
          Node
         | |
| Inherits: | Node 
 | 
| Defined in: | lib/prism/node_ext.rb | 
Instance Method Summary
- 
    
      #value  
    
    Returns the value of the node as a Ruby Rational. 
Instance Method Details
#value
Returns the value of the node as a Ruby Rational.
# File 'lib/prism/node_ext.rb', line 83
def value Rational(slice.chomp("r")) end