Module: TerminalNode
- Defined in:
- lib/formulae/compile/formula_builder.rb
Instance Method Summary collapse
Instance Method Details
#to_method_name ⇒ Object
4 5 6 |
# File 'lib/formulae/compile/formula_builder.rb', line 4 def to_method_name self.gsub(/([a-z])([A-Z])/,'\1_\2').downcase.gsub(/[^\p{word}]/,'_') end |