Class: RCharts::GraphHelper::Series::Path::PathBuffer

Inherits:
String
  • Object
show all
Defined in:
app/helpers/rcharts/graph_helper/series/path.rb

Overview

:nodoc:

Constant Summary collapse

SEPARATOR =
' '

Instance Method Summary collapse

Instance Method Details

#<<(object) ⇒ Object



16
17
18
19
20
# File 'app/helpers/rcharts/graph_helper/series/path.rb', line 16

def <<(object)
  return super if object.blank?

  concat object
end

#concat(*objects) ⇒ Object



10
11
12
13
14
# File 'app/helpers/rcharts/graph_helper/series/path.rb', line 10

def concat(*objects)
  return super if empty? || objects.empty?

  super(SEPARATOR, objects.compact_blank.join(SEPARATOR))
end

#prepend(*other_strings) ⇒ Object



22
23
24
25
26
# File 'app/helpers/rcharts/graph_helper/series/path.rb', line 22

def prepend(*other_strings)
  return super if empty? || other_strings.empty?

  super(other_strings.compact_blank.join(SEPARATOR), SEPARATOR)
end