Module: Pakyow::UI::Recordable Private
- Extended by:
- Support::Extension
- Includes:
- Support::SafeStringHelpers
- Defined in:
- lib/pakyow/ui/recordable.rb,
lib/pakyow/ui/recordable/attribute.rb,
lib/pakyow/ui/recordable/attributes.rb,
lib/pakyow/ui/recordable/helpers/client_remapping.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: Helpers Classes: Attribute, Attributes
Instance Attribute Summary collapse
- #calls ⇒ Object readonly private
Instance Method Summary collapse
- #cache_bindings! ⇒ Object private
- #to_a ⇒ Object private
- #to_json ⇒ Object private
Instance Attribute Details
#calls ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 |
# File 'lib/pakyow/ui/recordable.rb', line 31 def calls @calls end |
Instance Method Details
#cache_bindings! ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/pakyow/ui/recordable.rb', line 42 def cache_bindings! binding_nodes = if (view.object.is_a?(StringDoc::Node) || view.object.is_a?(StringDoc::MetaNode)) && view.object.significant?(:multipart_binding) [view.object] else view.object.find_significant_nodes(:binding) end @bindings = binding_nodes.flat_map { |node| [node.label(:binding), node.label(:binding_prop)] }.compact end |
#to_a ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/pakyow/ui/recordable.rb', line 37 def to_a @calls end |
#to_json ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 |
# File 'lib/pakyow/ui/recordable.rb', line 33 def to_json(*) optimized.to_json end |