Skip to content

Commit e5d0923

Browse files
committed
fix typos in Plot
1 parent 9bcfdaa commit e5d0923

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/gnuplotrb/plot.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,16 @@ def add_datasets(*datasets)
159159
alias_method :add_dataset, :add_datasets
160160
alias_method :<<, :add_datasets
161161

162-
def add_datasets(*datasets)
162+
def add_datasets!(*datasets)
163163
datasets.map! { |ds| ds.is_a?(Numeric) ? ds : dataset_from_any(ds) }
164164
# first element is position where to add datasets
165165
datasets.unshift(0) unless datasets[0].is_a?(Numeric)
166166
@datasets = @datasets.insert(*datasets)
167167
self
168168
end
169169

170+
alias_method :add_dataset!, :add_datasets!
171+
170172
##
171173
# ====== Overview
172174
# Create new Plot object where dataset at given position

0 commit comments

Comments
 (0)