Class: Commands::Init::FileDefinition
- Inherits:
-
Object
- Object
- Commands::Init::FileDefinition
- Defined in:
- lib/commands/init/file_definition.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#local_path ⇒ Object
Returns the value of attribute local_path.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(options) ⇒ FileDefinition
constructor
Options should indicate :content or :local_path, but not both.
Constructor Details
#initialize(options) ⇒ FileDefinition
Options should indicate :content or :local_path, but not both
9 10 11 12 13 |
# File 'lib/commands/init/file_definition.rb', line 9 def initialize() @path = [:path] @content = [:content] if .key?(:content) @local_path = [:local_path] if .key?(:local_path) end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
6 7 8 |
# File 'lib/commands/init/file_definition.rb', line 6 def content @content end |
#local_path ⇒ Object
Returns the value of attribute local_path.
6 7 8 |
# File 'lib/commands/init/file_definition.rb', line 6 def local_path @local_path end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/commands/init/file_definition.rb', line 6 def path @path end |