Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/lazy_high_charts/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#js_code(true_or_false = true) ⇒ Object



3
4
5
6
# File 'lib/lazy_high_charts/core_ext/string.rb', line 3

def js_code true_or_false = true
  @_lazy_high_charts_js_code = true_or_false
  self
end

#js_code?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/lazy_high_charts/core_ext/string.rb', line 8

def js_code?
  @_lazy_high_charts_js_code || false 
end