Class: RubyNPM::Options::Definitions::Workspaces
- Inherits:
-
Object
- Object
- RubyNPM::Options::Definitions::Workspaces
- Defined in:
- lib/ruby_npm/options/definitions/workspaces.rb
Instance Attribute Summary collapse
-
#workspace_name ⇒ Object
readonly
Returns the value of attribute workspace_name.
-
#workspaces_name ⇒ Object
readonly
Returns the value of attribute workspaces_name.
Instance Method Summary collapse
- #build(parameters) ⇒ Object
-
#initialize ⇒ Workspaces
constructor
A new instance of Workspaces.
- #matches?(name) ⇒ Boolean
Constructor Details
#initialize ⇒ Workspaces
Returns a new instance of Workspaces.
13 14 15 16 |
# File 'lib/ruby_npm/options/definitions/workspaces.rb', line 13 def initialize @workspace_name = Name.new('--workspace') @workspaces_name = Name.new('--workspaces') end |
Instance Attribute Details
#workspace_name ⇒ Object (readonly)
Returns the value of attribute workspace_name.
11 12 13 |
# File 'lib/ruby_npm/options/definitions/workspaces.rb', line 11 def workspace_name @workspace_name end |
#workspaces_name ⇒ Object (readonly)
Returns the value of attribute workspaces_name.
11 12 13 |
# File 'lib/ruby_npm/options/definitions/workspaces.rb', line 11 def workspaces_name @workspaces_name end |
Instance Method Details
#build(parameters) ⇒ Object
22 23 24 25 |
# File 'lib/ruby_npm/options/definitions/workspaces.rb', line 22 def build(parameters) (parameters) + build_workspaces_option(parameters) end |