Class: PageEz::Parameters
- Inherits:
-
Object
- Object
- PageEz::Parameters
- Defined in:
- lib/page_ez/parameters.rb
Defined Under Namespace
Classes: NullParameters, Parameter
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(block) ⇒ Parameters
constructor
A new instance of Parameters.
- #keyword_args ⇒ Object
- #non_keyword_args ⇒ Object
Constructor Details
#initialize(block) ⇒ Parameters
Returns a new instance of Parameters.
27 28 29 |
# File 'lib/page_ez/parameters.rb', line 27 def initialize(block) @block = block end |
Class Method Details
.build(block) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/page_ez/parameters.rb', line 3 def self.build(block) if block&.respond_to?(:parameters) && block&.respond_to?(:arity) new(block) else NullParameters.new end end |