Class: NextRailsScaffold::Generators::NodePackageManagerStruct
- Inherits:
-
Struct
- Object
- Struct
- NextRailsScaffold::Generators::NodePackageManagerStruct
- Defined in:
- lib/generators/next_rails_scaffold/node_package_manager.rb
Instance Attribute Summary collapse
-
#add ⇒ Object
Returns the value of attribute add.
-
#fetch ⇒ Object
Returns the value of attribute fetch.
-
#lock_file ⇒ Object
Returns the value of attribute lock_file.
-
#run ⇒ Object
Returns the value of attribute run.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#add ⇒ Object
Returns the value of attribute add
8 9 10 |
# File 'lib/generators/next_rails_scaffold/node_package_manager.rb', line 8 def add @add end |
#fetch ⇒ Object
Returns the value of attribute fetch
8 9 10 |
# File 'lib/generators/next_rails_scaffold/node_package_manager.rb', line 8 def fetch @fetch end |
#lock_file ⇒ Object
Returns the value of attribute lock_file
8 9 10 |
# File 'lib/generators/next_rails_scaffold/node_package_manager.rb', line 8 def lock_file @lock_file end |
#run ⇒ Object
Returns the value of attribute run
8 9 10 |
# File 'lib/generators/next_rails_scaffold/node_package_manager.rb', line 8 def run @run end |
#version ⇒ Object
Returns the value of attribute version
8 9 10 |
# File 'lib/generators/next_rails_scaffold/node_package_manager.rb', line 8 def version @version end |
Instance Method Details
#available? ⇒ Boolean
11 12 13 |
# File 'lib/generators/next_rails_scaffold/node_package_manager.rb', line 11 def available? version.present? end |
#to_s ⇒ Object
9 |
# File 'lib/generators/next_rails_scaffold/node_package_manager.rb', line 9 def to_s = run.split.first |