Class: LLT::Review::Treebank::Word::Attr

Inherits:
Struct
  • Object
show all
Defined in:
lib/llt/review/treebank/word.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



9
10
11
# File 'lib/llt/review/treebank/word.rb', line 9

def attribute
  @attribute
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/llt/review/treebank/word.rb', line 9

def id
  @id
end

Instance Method Details

#reportObject



14
15
16
# File 'lib/llt/review/treebank/word.rb', line 14

def report
  @report ||= Report.const_get(id.capitalize).new(attribute)
end

#to_sObject



10
11
12
# File 'lib/llt/review/treebank/word.rb', line 10

def to_s
  attribute
end