Class: TM::DeclinedPhrase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chunk) ⇒ DeclinedPhrase

Returns a new instance of DeclinedPhrase.



102
103
104
105
106
107
108
# File 'lib/nysol/phrase.rb', line 102

def initialize(chunk)
	if chunk.class==String then
		@phrase=chunk
	else
		@phrase=chunk.phrase
	end
end

Instance Attribute Details

#identifiedObject (readonly)

以下iterationで動的に変化するメンバ変数



100
101
102
# File 'lib/nysol/phrase.rb', line 100

def identified
  @identified
end

#phraseObject (readonly)

Returns the value of attribute phrase.



97
98
99
# File 'lib/nysol/phrase.rb', line 97

def phrase
  @phrase
end

Instance Method Details

#add(phrase) ⇒ Object



110
111
112
# File 'lib/nysol/phrase.rb', line 110

def add(phrase)
	@phrase = phrase
end

#show(fp = STDERR) ⇒ Object



126
127
128
# File 'lib/nysol/phrase.rb', line 126

def show(fp=STDERR)
	fp.print "#{phrase}"
end

#to_sObject



114
115
116
# File 'lib/nysol/phrase.rb', line 114

def to_s
	return @phrase
end

#writePhrase(fp) ⇒ Object



118
119
120
# File 'lib/nysol/phrase.rb', line 118

def writePhrase(fp)
	fp.print @phrase
end

#writePhraseOrg(fp) ⇒ Object



122
123
124
# File 'lib/nysol/phrase.rb', line 122

def writePhraseOrg(fp)
	fp.print @phraseOrg
end