Method: Datasets::Ggplot2Dataset#initialize
- Defined in:
- lib/datasets/ggplot2-dataset.rb
#initialize(ggplot2_dataset_name) ⇒ Ggplot2Dataset
Returns a new instance of Ggplot2Dataset.
3 4 5 6 7 8 9 10 11 |
# File 'lib/datasets/ggplot2-dataset.rb', line 3 def initialize(ggplot2_dataset_name) super() @ggplot2_dataset_name = ggplot2_dataset_name .url = "https://ggplot2.tidyverse.org/reference/#{@ggplot2_dataset_name}.html" .description = lambda do fetch_description end end |