Class: ExpandRuby::Node
- Inherits:
-
Object
- Object
- ExpandRuby::Node
- Defined in:
- lib/re_expand/Node.rb
Constant Summary collapse
- @@id =
1
- @@nodes =
{}
Instance Attribute Summary collapse
-
#accept ⇒ Object
Returns the value of attribute accept.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#pars ⇒ Object
Returns the value of attribute pars.
-
#trans ⇒ Object
readonly
Returns the value of attribute trans.
Class Method Summary collapse
-
.node(id) ⇒ Object
ノードidからノードを取得.
- .nodes ⇒ Object
Instance Method Summary collapse
- #addTrans(pat, dest) ⇒ Object
-
#initialize ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
40 41 42 43 44 45 46 47 |
# File 'lib/re_expand/Node.rb', line 40 def initialize @accept = nil @trans = [] @id = @@id @@nodes[@id] = self @@id += 1 @pars = [] end |
Instance Attribute Details
#accept ⇒ Object
Returns the value of attribute accept.
51 52 53 |
# File 'lib/re_expand/Node.rb', line 51 def accept @accept end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
49 50 51 |
# File 'lib/re_expand/Node.rb', line 49 def id @id end |
#pars ⇒ Object
Returns the value of attribute pars.
51 52 53 |
# File 'lib/re_expand/Node.rb', line 51 def pars @pars end |
#trans ⇒ Object (readonly)
Returns the value of attribute trans.
50 51 52 |
# File 'lib/re_expand/Node.rb', line 50 def trans @trans end |