Class: TM::DeclinedPhrase
- Inherits:
-
Object
- Object
- TM::DeclinedPhrase
- Defined in:
- lib/nysol/phrase.rb
Instance Attribute Summary collapse
-
#identified ⇒ Object
readonly
以下iterationで動的に変化するメンバ変数.
-
#phrase ⇒ Object
readonly
Returns the value of attribute phrase.
Instance Method Summary collapse
- #add(phrase) ⇒ Object
-
#initialize(chunk) ⇒ DeclinedPhrase
constructor
A new instance of DeclinedPhrase.
- #show(fp = STDERR) ⇒ Object
- #to_s ⇒ Object
- #writePhrase(fp) ⇒ Object
- #writePhraseOrg(fp) ⇒ Object
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
#identified ⇒ Object (readonly)
以下iterationで動的に変化するメンバ変数
100 101 102 |
# File 'lib/nysol/phrase.rb', line 100 def identified @identified end |
#phrase ⇒ Object (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_s ⇒ Object
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 |