Class: Pageflow::PositionedFile::Null

Inherits:
PositionedFile
  • Object
show all
Defined in:
app/models/pageflow/positioned_file.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Constructor Details

#initializeNull

Returns a new instance of Null.



33
34
35
# File 'app/models/pageflow/positioned_file.rb', line 33

def initialize
  super(nil)
end

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'app/models/pageflow/positioned_file.rb', line 41

def blank?
  true
end

#thumbnail_urlObject



37
38
39
# File 'app/models/pageflow/positioned_file.rb', line 37

def thumbnail_url(*)
  ImageFile.new.attachment.url(*)
end