Permalink
Browse files

changed 'attr :hoge,true' to 'attr_accessor :hoge'

  • Loading branch information...
1 parent 4442cf3 commit a542b09b2920a7afe156e27dee38ae9cb370ea26 @ymrl ymrl committed Apr 30, 2012
Showing with 9 additions and 7 deletions.
  1. +6 −5 lib/Generator.rb
  2. +3 −2 lib/Node.rb
View
11 lib/Generator.rb
@@ -27,11 +27,12 @@ def initialize(id, state=[], s="", substrings=[], accept=false)
@state = state
end
- attr :id, true
- attr :s, true
- attr :substrings, true
- attr :accept, true
- attr :state, true
+ #attr :id, true
+ #attr :s, true
+ #attr :substrings, true
+ #attr :accept, true
+ #attr :state, true
+ attr_accessor :id,:s,:substrings,:accept,:state
end
class Generator
View
5 lib/Node.rb
@@ -46,8 +46,9 @@ def initialize
attr_reader :id
attr_reader :trans
- attr :accept, true
- attr :pars, true
+ attr_accessor :accept,:pars
+ #attr :accept, true
+ #attr :pars, true
def addTrans(pat,dest)
t = Trans.new(pat,dest)

0 comments on commit a542b09

Please sign in to comment.