Class: Foobara::RemoteGenerator::Services::CommandCastResultGenerator::CastTree
- Inherits:
-
Object
- Object
- Foobara::RemoteGenerator::Services::CommandCastResultGenerator::CastTree
- Defined in:
- foobara-typescript-remote-command-generator-1.2.0/src/remote_generator/services/command_cast_result_generator.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#declaration_to_cast ⇒ Object
Returns the value of attribute declaration_to_cast.
-
#initial ⇒ Object
Returns the value of attribute initial.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(children: nil, declaration_to_cast: nil, initial: false) ⇒ CastTree
constructor
A new instance of CastTree.
Constructor Details
#initialize(children: nil, declaration_to_cast: nil, initial: false) ⇒ CastTree
Returns a new instance of CastTree.
10 11 12 13 14 |
# File 'src/remote_generator/services/command_cast_result_generator.rb', line 10 def initialize(children: nil, declaration_to_cast: nil, initial: false) self.children = children self.declaration_to_cast = declaration_to_cast self.initial = initial end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
8 9 10 |
# File 'src/remote_generator/services/command_cast_result_generator.rb', line 8 def children @children end |
#declaration_to_cast ⇒ Object
Returns the value of attribute declaration_to_cast.
8 9 10 |
# File 'src/remote_generator/services/command_cast_result_generator.rb', line 8 def declaration_to_cast @declaration_to_cast end |
#initial ⇒ Object
Returns the value of attribute initial.
8 9 10 |
# File 'src/remote_generator/services/command_cast_result_generator.rb', line 8 def initial @initial end |
Instance Method Details
#empty? ⇒ Boolean
16 17 18 |
# File 'src/remote_generator/services/command_cast_result_generator.rb', line 16 def empty? (children.nil? || children.empty?) && declaration_to_cast.nil? end |