Class: Myaso::Mystem::Form

Inherits:
Struct
  • Object
show all
Defined in:
lib/myaso/mystem.rb

Overview

A word form generated by mystem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#flex_grammemesObject

Returns the value of attribute flex_grammemes

Returns:

  • (Object)

    the current value of flex_grammemes


51
52
53
# File 'lib/myaso/mystem.rb', line 51

def flex_grammemes
  @flex_grammemes
end

#formObject

Returns the value of attribute form

Returns:

  • (Object)

    the current value of form


51
52
53
# File 'lib/myaso/mystem.rb', line 51

def form
  @form
end

#msdObject

Returns the value of attribute msd

Returns:

  • (Object)

    the current value of msd


51
52
53
# File 'lib/myaso/mystem.rb', line 51

def msd
  @msd
end

#stem_grammemesObject

Returns the value of attribute stem_grammemes

Returns:

  • (Object)

    the current value of stem_grammemes


51
52
53
# File 'lib/myaso/mystem.rb', line 51

def stem_grammemes
  @stem_grammemes
end

Instance Method Details

#inspectObject

:attr_accessor: msd A morphosyntactic descriptor.


60
61
62
# File 'lib/myaso/mystem.rb', line 60

def inspect #:nodoc:
  '#<%s form=%s msd="%s">' % [self.class.name, to_s.inspect, msd]
end

#to_sObject

:nodoc:


64
65
66
# File 'lib/myaso/mystem.rb', line 64

def to_s #:nodoc:
  form
end