Class: Howitzer::Web::Section
- Inherits:
-
BaseSection
- Object
- BaseSection
- Howitzer::Web::Section
- Defined in:
- lib/howitzer/web/section.rb
Overview
This class uses for named sections which possible to reuse in different pages
Constant Summary
Constants included from CapybaraMethodsProxy
CapybaraMethodsProxy::PROXIED_CAPYBARA_METHODS
Instance Attribute Summary
Attributes inherited from BaseSection
Class Method Summary collapse
-
.me(*args, **options) ⇒ Object
DSL method which specifies section container selector represented by HTML element.
Instance Method Summary collapse
-
#meta ⇒ Meta::Entry
Provides access to meta information about entities in section.
Methods inherited from BaseSection
Methods included from CapybaraMethodsProxy
Methods included from IframeDsl
Methods included from CapybaraContextHolder
Methods included from SectionDsl
Methods included from ElementDsl
Constructor Details
This class inherits a constructor from Howitzer::Web::BaseSection
Class Method Details
.me(*args, **options) ⇒ Object
DSL method which specifies section container selector represented by HTML element. Any elements described in sections will start in this HTML element.
28 29 30 31 32 33 34 |
# File 'lib/howitzer/web/section.rb', line 28 def me(*args, **) raise ArgumentError, 'Finder arguments are missing' if args.blank? @default_finder_args = args @default_finder_options = self end |
Instance Method Details
#meta ⇒ Meta::Entry
Provides access to meta information about entities in section
10 11 12 |
# File 'lib/howitzer/web/section.rb', line 10 def @meta ||= Meta::Entry.new(self) end |