Class: FalseClass

Inherits:
Object show all
Defined in:
motion/core_ext/object/blank.rb,
motion/core_ext/object/to_json.rb,
motion/core_ext/object/to_param.rb,
motion/core_ext/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

false is blank:

false.blank? # => true

Returns:

  • (Boolean)


55
56
57
# File 'motion/core_ext/object/blank.rb', line 55

def blank?
  true
end

#duplicable?Boolean

false is not duplicable:

false.duplicable? # => false
false.dup         # => TypeError: can't dup FalseClass

Returns:

  • (Boolean)


44
45
46
# File 'motion/core_ext/object/duplicable.rb', line 44

def duplicable?
  false
end

#to_jsonObject

Returns self as string.



33
34
35
# File 'motion/core_ext/object/to_json.rb', line 33

def to_json
  self.to_s
end

#to_paramObject

Returns self.



24
25
26
# File 'motion/core_ext/object/to_param.rb', line 24

def to_param
  self
end