From 09fc5ef46b911f9d7e31cdedd240e7afc4c11c92 Mon Sep 17 00:00:00 2001 From: realtradam Date: Wed, 7 Jul 2021 17:49:00 -0400 Subject: completed functionality --- docs/FelFlame/Components.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'docs/FelFlame/Components.html') diff --git a/docs/FelFlame/Components.html b/docs/FelFlame/Components.html index 0690cfe..de48255 100644 --- a/docs/FelFlame/Components.html +++ b/docs/FelFlame/Components.html @@ -111,9 +111,7 @@

Creates component managers and allows accessing them them under the Components namespace as Constants

-

To see how component managers are used please look at the Helper::ComponentManagerTemplate documentation.

- -

TODO: Improve Component overview

+

To see how component managers are used please look at the ComponentManager documentation.

@@ -178,7 +176,7 @@
-

Creates a new component manager.

+

Creates a new component manager.

@@ -233,12 +231,12 @@
 
 
-50
 51
-52
+52 +53 -
# File 'component_manager.rb', line 50
+      
# File 'component_manager.rb', line 51
 
 def each(&block)
   constants.each(&block)
@@ -251,7 +249,7 @@
       

- .new(component_name, *attrs, **attrs_with_defaults) ⇒ ComponentManager + .new(component_name, *attrs, **attrs_with_defaults) ⇒ ComponentManager @@ -260,7 +258,7 @@

-

Creates a new component manager.

+

Creates a new component manager.

@@ -337,7 +335,7 @@
  • - (ComponentManager) + (ComponentManager) @@ -374,7 +372,8 @@ 43 44 45 -46
  • +46 +47
    # File 'component_manager.rb', line 23
    @@ -384,13 +383,14 @@
         raise(NameError.new, "Component Manager '#{component_name}' is already defined")
       end
     
    -  const_set(component_name, Class.new(FelFlame::Helper::ComponentManager) {})
    +
    +  const_set(component_name, Class.new(FelFlame::ComponentManager) {})
       attrs.each do |attr|
         FelFlame::Components.const_get(component_name).attr_accessor attr
       end
       attrs_with_defaults.each do |attr, _default|
    -    #FelFlame::Components.const_get(component_name).attr_accessor attr
    -    FelFlame::Components.const_get(component_name).attr_reader attr
    +    attrs_with_defaults[attr] = _default.dup
    +    FelFlame::Components.const_get(component_name).attr_reader attr
         FelFlame::Components.const_get(component_name).define_method("#{attr}=") do |value|
           attr_changed_trigger_systems(attr) unless value.equal? send(attr)
           instance_variable_set("@#{attr}", value)
    @@ -398,7 +398,7 @@
       end
       FelFlame::Components.const_get(component_name).define_method(:set_defaults) do
         attrs_with_defaults.each do |attr, default|
    -      instance_variable_set("@#{attr}", default)
    +      instance_variable_set("@#{attr}", default.dup)
         end
       end
       FelFlame::Components.const_get(component_name)
    @@ -413,7 +413,7 @@
     
     
           
    -- 
    cgit v1.2.3