Class: Sastrawi::Stemmer::Context::Removal

Inherits:
Object
  • Object
show all
Defined in:
lib/sastrawi/stemmer/context/removal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(visitor, subject, result, removed_part, affix_type) ⇒ Removal

Returns a new instance of Removal.



7
8
9
10
11
12
13
# File 'lib/sastrawi/stemmer/context/removal.rb', line 7

def initialize(visitor, subject, result, removed_part, affix_type)
  @visitor = visitor
  @subject = subject
  @result = result
  @removed_part = removed_part
  @affix_type = affix_type
end

Instance Attribute Details

#affix_typeObject (readonly)

Returns the value of attribute affix_type.



5
6
7
# File 'lib/sastrawi/stemmer/context/removal.rb', line 5

def affix_type
  @affix_type
end

#removed_partObject (readonly)

Returns the value of attribute removed_part.



5
6
7
# File 'lib/sastrawi/stemmer/context/removal.rb', line 5

def removed_part
  @removed_part
end

#resultObject (readonly)

Returns the value of attribute result.



5
6
7
# File 'lib/sastrawi/stemmer/context/removal.rb', line 5

def result
  @result
end

#subjectObject (readonly)

Returns the value of attribute subject.



5
6
7
# File 'lib/sastrawi/stemmer/context/removal.rb', line 5

def subject
  @subject
end

#visitorObject (readonly)

Returns the value of attribute visitor.



5
6
7
# File 'lib/sastrawi/stemmer/context/removal.rb', line 5

def visitor
  @visitor
end