Class: Pakyow::UI::Recordable::Attribute Private

Inherits:
SimpleDelegator
  • Object
show all
Includes:
Helpers::ClientRemapping
Defined in:
lib/pakyow/ui/recordable/attribute.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods included from Helpers::ClientRemapping

#remap_for_client

Constructor Details

#initialize(attribute) ⇒ Attribute

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.

Returns a new instance of Attribute.



15
16
17
18
# File 'lib/pakyow/ui/recordable/attribute.rb', line 15

def initialize(attribute)
  __setobj__(attribute)
  @calls = []
end

Instance Method Details

#pp(*args) ⇒ 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.

Fixes an issue using pp inside a delegator.



34
35
36
# File 'lib/pakyow/ui/recordable/attribute.rb', line 34

def pp(*args)
  Kernel.pp(*args)
end

#to_jsonObject

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.



28
29
30
# File 'lib/pakyow/ui/recordable/attribute.rb', line 28

def to_json(*)
  @calls.to_json
end