Class: Fig::Publish
- Inherits:
-
Object
- Object
- Fig::Publish
- Defined in:
- lib/fig/package.rb
Instance Attribute Summary collapse
-
#local_name ⇒ Object
readonly
Returns the value of attribute local_name.
-
#remote_name ⇒ Object
readonly
Returns the value of attribute remote_name.
Instance Method Summary collapse
-
#initialize(local_name, remote_name) ⇒ Publish
constructor
A new instance of Publish.
- #unparse(indent) ⇒ Object
Constructor Details
#initialize(local_name, remote_name) ⇒ Publish
Returns a new instance of Publish.
86 87 88 89 |
# File 'lib/fig/package.rb', line 86 def initialize(local_name, remote_name) @local_name = local_name @remote_name = remote_name end |
Instance Attribute Details
#local_name ⇒ Object (readonly)
Returns the value of attribute local_name.
84 85 86 |
# File 'lib/fig/package.rb', line 84 def local_name @local_name end |
#remote_name ⇒ Object (readonly)
Returns the value of attribute remote_name.
84 85 86 |
# File 'lib/fig/package.rb', line 84 def remote_name @remote_name end |
Instance Method Details
#unparse(indent) ⇒ Object
91 92 93 |
# File 'lib/fig/package.rb', line 91 def unparse(indent) "#{indent}publish #{@local_name}->#{@remote_name}" end |