Module: Enumerable
- Defined in:
- lib/has_helpers/core_ext/enumerable.rb
Overview
typed: true frozen_string_literal: true
Instance Method Summary collapse
- #to_container(**options) ⇒ Object
- #to_dataset(**options) ⇒ Object
- #to_partial_path ⇒ Object
- #to_renderable ⇒ Object
Instance Method Details
#to_container(**options) ⇒ Object
5 6 7 |
# File 'lib/has_helpers/core_ext/enumerable.rb', line 5 def to_container(**) ::HasHelpers::Container.new(**, renderable: self) end |
#to_dataset(**options) ⇒ Object
13 14 15 |
# File 'lib/has_helpers/core_ext/enumerable.rb', line 13 def to_dataset(**) ::HasHelpers::Dataset.new(**, data: self) end |
#to_partial_path ⇒ Object
17 18 19 |
# File 'lib/has_helpers/core_ext/enumerable.rb', line 17 def to_partial_path "/has_helpers/enumerables/enumerable" end |
#to_renderable ⇒ Object
9 10 11 |
# File 'lib/has_helpers/core_ext/enumerable.rb', line 9 def to_renderable self end |