Module: MxxRu::Externals::Impl::ExternalBasics
- Included in:
- ArchiveAsExternals, Git, Hg, Svn
- Defined in:
- lib/mxx_ru/externals.rb
Overview
class WebDownloader
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
- #map(value) ⇒ Object
- #map_dir(value) ⇒ Object
- #map_file(value) ⇒ Object
- #url(value) ⇒ Object (also: #url=)
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
243 244 245 |
# File 'lib/mxx_ru/externals.rb', line 243 def name @name end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
241 242 243 |
# File 'lib/mxx_ru/externals.rb', line 241 def paths @paths end |
Instance Method Details
#map(value) ⇒ Object
257 258 259 260 261 262 |
# File 'lib/mxx_ru/externals.rb', line 257 def map(value) STDERR.print("#{caller(1)[0]}: 'map_dir' must be used instead of 'map'," + " 'map' is deprecated\n") map_dir(value) end |
#map_dir(value) ⇒ Object
251 252 253 254 255 |
# File 'lib/mxx_ru/externals.rb', line 251 def map_dir(value) raise "map_dir() value must be a Hash" unless value.is_a?(Hash) @paths.merge!(value) end |
#map_file(value) ⇒ Object
264 265 266 267 268 |
# File 'lib/mxx_ru/externals.rb', line 264 def map_file(value) raise "map_file() value must be a Hash" unless value.is_a?(Hash) @files.merge!(value) end |
#url(value) ⇒ Object Also known as: url=
245 246 247 |
# File 'lib/mxx_ru/externals.rb', line 245 def url(value) @url = value end |