Class: Avm::Sync
- Inherits:
-
Object
- Object
- Avm::Sync
- Defined in:
- lib/avm/sync.rb
Instance Attribute Summary collapse
-
#excludes ⇒ Object
readonly
Returns the value of attribute excludes.
-
#includes ⇒ Object
readonly
Returns the value of attribute includes.
Instance Method Summary collapse
- #add_exclude(exclude) ⇒ Object
- #add_excludes(*excludes) ⇒ Object
- #add_include(include) ⇒ Object
- #add_includes(*includes) ⇒ Object
- #move_mode(value) ⇒ Object
- #move_mode? ⇒ Boolean
- #run ⇒ Object
Instance Attribute Details
#excludes ⇒ Object (readonly)
Returns the value of attribute excludes.
7 8 9 |
# File 'lib/avm/sync.rb', line 7 def excludes @excludes end |
#includes ⇒ Object (readonly)
Returns the value of attribute includes.
7 8 9 |
# File 'lib/avm/sync.rb', line 7 def includes @includes end |
Instance Method Details
#add_exclude(exclude) ⇒ Object
21 22 23 24 25 |
# File 'lib/avm/sync.rb', line 21 def add_exclude(exclude) excludes << exclude self end |
#add_excludes(*excludes) ⇒ Object
27 28 29 30 31 |
# File 'lib/avm/sync.rb', line 27 def add_excludes(*excludes) excludes.each { |exclude| add_exclude(exclude) } self end |
#add_include(include) ⇒ Object
33 34 35 36 37 |
# File 'lib/avm/sync.rb', line 33 def add_include(include) includes << include self end |
#add_includes(*includes) ⇒ Object
39 40 41 42 43 |
# File 'lib/avm/sync.rb', line 39 def add_includes(*includes) includes.each { |include| add_include(include) } self end |
#move_mode(value) ⇒ Object
45 46 47 48 49 |
# File 'lib/avm/sync.rb', line 45 def move_mode(value) @move_mode = value self end |
#move_mode? ⇒ Boolean
51 52 53 |
# File 'lib/avm/sync.rb', line 51 def move_mode? @move_mode ? true : false end |
#run ⇒ Object
16 17 18 19 |
# File 'lib/avm/sync.rb', line 16 def run clear_target copy end |