Class: Igniter::Embed::Registry::Registration
- Inherits:
-
Struct
- Object
- Struct
- Igniter::Embed::Registry::Registration
- Defined in:
- lib/igniter/embed/registry.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition
6 7 8 |
# File 'lib/igniter/embed/registry.rb', line 6 def definition @definition end |
#kind ⇒ Object
Returns the value of attribute kind
6 7 8 |
# File 'lib/igniter/embed/registry.rb', line 6 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/igniter/embed/registry.rb', line 6 def name @name end |
Instance Method Details
#block? ⇒ Boolean
7 8 9 |
# File 'lib/igniter/embed/registry.rb', line 7 def block? kind == :block end |
#class? ⇒ Boolean
11 12 13 |
# File 'lib/igniter/embed/registry.rb', line 11 def class? kind == :class end |
#to_h ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/igniter/embed/registry.rb', line 15 def to_h { name: name, kind: kind, definition: definition_name } end |