Class: Copypasta::Entry::Base
- Inherits:
-
Object
- Object
- Copypasta::Entry::Base
- Defined in:
- lib/copypasta/entry/base.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/copypasta/entry/base.rb', line 4 def filename @filename end |
Instance Method Details
#apply(destination_directory, parameters) ⇒ Object
6 7 8 9 |
# File 'lib/copypasta/entry/base.rb', line 6 def apply(destination_directory, parameters) do_apply(destination_directory, parameters) \ if @only_if.nil? || @only_if.call(parameters) end |