Class: IronWorkerNG::Code::Container::Base
- Inherits:
-
Object
- Object
- IronWorkerNG::Code::Container::Base
- Defined in:
- lib/iron_worker_ng/code/container/base.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #add(dest, src) ⇒ Object
- #clear_dest(dest) ⇒ Object
- #close ⇒ Object
- #commit ⇒ Object
- #get_output_stream(dest, &block) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/iron_worker_ng/code/container/base.rb', line 10 def initialize @name = ::Dir.tmpdir + '/' + ::Dir::Tmpname.make_tmpname('iron-worker-ng-', 'container') end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/iron_worker_ng/code/container/base.rb', line 8 def name @name end |
Instance Method Details
#add(dest, src) ⇒ Object
20 21 |
# File 'lib/iron_worker_ng/code/container/base.rb', line 20 def add(dest, src) end |
#clear_dest(dest) ⇒ Object
14 15 16 17 18 |
# File 'lib/iron_worker_ng/code/container/base.rb', line 14 def clear_dest(dest) dest = Pathname.new(dest).cleanpath.to_s unless dest.empty? dest end |
#close ⇒ Object
29 30 |
# File 'lib/iron_worker_ng/code/container/base.rb', line 29 def close end |
#commit ⇒ Object
26 27 |
# File 'lib/iron_worker_ng/code/container/base.rb', line 26 def commit end |
#get_output_stream(dest, &block) ⇒ Object
23 24 |
# File 'lib/iron_worker_ng/code/container/base.rb', line 23 def get_output_stream(dest, &block) end |