Module: Enumerable

Defined in:
lib/has_helpers/core_ext/enumerable.rb

Overview

typed: true frozen_string_literal: true

Instance Method Summary collapse

Instance Method Details

#to_container(**options) ⇒ Object



5
6
7
# File 'lib/has_helpers/core_ext/enumerable.rb', line 5

def to_container(**options)
  ::HasHelpers::Container.new(**options, renderable: self)
end

#to_dataset(**options) ⇒ Object



13
14
15
# File 'lib/has_helpers/core_ext/enumerable.rb', line 13

def to_dataset(**options)
  ::HasHelpers::Dataset.new(**options, data: self)
end

#to_partial_pathObject



17
18
19
# File 'lib/has_helpers/core_ext/enumerable.rb', line 17

def to_partial_path
  "/has_helpers/enumerables/enumerable"
end

#to_renderableObject



9
10
11
# File 'lib/has_helpers/core_ext/enumerable.rb', line 9

def to_renderable
  self
end