Class: Babelfish::Phrase::Node
- Inherits:
-
Object
- Object
- Babelfish::Phrase::Node
- Defined in:
- lib/babelfish/phrase/node.rb
Overview
Babelfish AST abstract node.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(args = {}) ⇒ Node
Returns a new instance of Node.
7 8 9 10 11 |
# File 'lib/babelfish/phrase/node.rb', line 7 def initialize( args = {} ) args.keys.each do |key| send("#{key}=", args[key]) if respond_to?("#{key}=") end end |