Class: Babelfish::Phrase::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/babelfish/phrase/node.rb

Overview

Babelfish AST abstract node.

Direct Known Subclasses

Literal, PluralForms, Variable

Instance Method Summary collapse

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