Class: Bulldog::Attachment::None

Inherits:
Maybe
  • Object
show all
Defined in:
lib/bulldog/attachment/none.rb

Instance Attribute Summary

Attributes inherited from Maybe

#name, #record, #saved, #stream, #value

Instance Method Summary collapse

Methods inherited from Maybe

#==, #copy_for, handle, #initialize, #interpolate_path, #interpolate_url, #load, #read_storable_attributes, #reflection, #reload, #saved?, #type, #unload

Constructor Details

This class inherits a constructor from Bulldog::Attachment::Maybe

Instance Method Details

#blank?Boolean

Return true. (Overrides ActiveSupport’s Object#blank?)

This means #present? will be false too.

Returns:

  • (Boolean)


11
12
13
# File 'lib/bulldog/attachment/none.rb', line 11

def blank?
  true
end

#destroyObject



30
31
# File 'lib/bulldog/attachment/none.rb', line 30

def destroy
end

#path(style_name = reflection.default_style) ⇒ Object



15
16
17
# File 'lib/bulldog/attachment/none.rb', line 15

def path(style_name = reflection.default_style)
  nil
end

#process(event, options = {}) ⇒ Object



33
34
# File 'lib/bulldog/attachment/none.rb', line 33

def process(event, options={})
end

#process!(event, options = {}) ⇒ Object



36
37
# File 'lib/bulldog/attachment/none.rb', line 36

def process!(event, options={})
end

#saveObject



27
28
# File 'lib/bulldog/attachment/none.rb', line 27

def save
end

#sizeObject



23
24
25
# File 'lib/bulldog/attachment/none.rb', line 23

def size
  nil
end

#url(style_name = reflection.default_style) ⇒ Object



19
20
21
# File 'lib/bulldog/attachment/none.rb', line 19

def url(style_name = reflection.default_style)
  nil
end