Class: JSI::Schema::Cxt::Block
- Inherits:
-
JSI::Schema::Cxt
- Object
- JSI::Schema::Cxt
- JSI::Schema::Cxt::Block
- Defined in:
- lib/jsi/schema/cxt.rb
Direct Known Subclasses
Instance Attribute Summary collapse
Attributes inherited from JSI::Schema::Cxt
Instance Method Summary collapse
Methods inherited from JSI::Schema::Cxt
#internal_integer?, #keyword?, #keyword_value_ary?, #keyword_value_bool?, #keyword_value_hash?, #keyword_value_numeric?, #keyword_value_str?, #schema_content, #subschema
Instance Attribute Details
#block ⇒ #call
68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/jsi/schema/cxt.rb', line 68 class Cxt::Block < Cxt if Util::LAST_ARGUMENT_AS_KEYWORD_PARAMETERS def cxt_yield(*a) block.call(*a) end else def cxt_yield(*a, **kw) block.call(*a, **kw) end end end |
Instance Method Details
#cxt_yield(*a, **kw) ⇒ Object
70 71 72 |
# File 'lib/jsi/schema/cxt.rb', line 70 def cxt_yield(*a) block.call(*a) end |