Class: Phlex::Reactive::Inspector::ComponentInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/phlex/reactive/inspector.rb

Overview

One reactive component's introspection.

* path        — Object.const_source_location(name) => [file, line].
* record_key  — the declared reactive_record key, or nil.
* state_keys  — the declared reactive_state keys.
* actions     — [ActionInfo], one per declared action.

Instance Attribute Summary collapse

Instance Attribute Details

#actionsObject (readonly)

Returns the value of attribute actions

Returns:

  • (Object)

    the current value of actions



51
52
53
# File 'lib/phlex/reactive/inspector.rb', line 51

def actions
  @actions
end

#klassObject (readonly)

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



51
52
53
# File 'lib/phlex/reactive/inspector.rb', line 51

def klass
  @klass
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



51
52
53
# File 'lib/phlex/reactive/inspector.rb', line 51

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



51
52
53
# File 'lib/phlex/reactive/inspector.rb', line 51

def path
  @path
end

#record_keyObject (readonly)

Returns the value of attribute record_key

Returns:

  • (Object)

    the current value of record_key



51
52
53
# File 'lib/phlex/reactive/inspector.rb', line 51

def record_key
  @record_key
end

#state_keysObject (readonly)

Returns the value of attribute state_keys

Returns:

  • (Object)

    the current value of state_keys



51
52
53
# File 'lib/phlex/reactive/inspector.rb', line 51

def state_keys
  @state_keys
end