Class: Dictionary

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
Team
Defined in:
app/models/dictionary.rb

Instance Method Summary (collapse)

Methods included from Team

extended

Instance Method Details

- (Object) definitions_count



110
111
112
# File 'app/models/dictionary.rb', line 110

def definitions_count
  @definitions_count ||= definitions.count
end

- (Object) manual_definitions=(val)



118
119
120
# File 'app/models/dictionary.rb', line 118

def manual_definitions= val
  @manual_definitions = val
end

- (Boolean) manual_definitions?

Whether to expect #import_definitions

Returns:

  • (Boolean)


114
115
116
117
# File 'app/models/dictionary.rb', line 114

def manual_definitions?
  return @manual_definitions if defined? @manual_definitions
  false
end

- (Object) name



107
108
109
# File 'app/models/dictionary.rb', line 107

def name
  title
end