Class: KnowledgeFigure

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/knowledge_figure.rb

Instance Method Summary collapse

Instance Method Details

#__image__Object



7
# File 'app/models/knowledge_figure.rb', line 7

alias :__image__ :image

#imageObject



8
9
10
11
12
# File 'app/models/knowledge_figure.rb', line 8

def image
  image = __image__
  raise("#{path} is a GPhys, not a figure.") if image.gphysizable?
  image
end