Class: NilClass

Inherits:
Object show all
Defined in:
lib/sinarey_support/core_ext/object/try.rb,
lib/sinarey_support/core_ext/object/blank.rb,
lib/sinarey_support/core_ext/object/to_param.rb,
lib/sinarey_support/core_ext/string/output_safety.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/sinarey_support/core_ext/object/blank.rb', line 18

def blank?
  true
end

#html_safe?Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/sinarey_support/core_ext/string/output_safety.rb', line 64

def html_safe?
  true
end

#to_paramObject



8
9
10
# File 'lib/sinarey_support/core_ext/object/to_param.rb', line 8

def to_param
  self
end

#try(*args) ⇒ Object



20
21
22
# File 'lib/sinarey_support/core_ext/object/try.rb', line 20

def try(*args)
  nil
end

#try!(*args) ⇒ Object



24
25
26
# File 'lib/sinarey_support/core_ext/object/try.rb', line 24

def try!(*args)
  nil
end