Class: Bently::Recipe::Modify
- Defined in:
- lib/bently/recipe.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#replace ⇒ Object
readonly
Returns the value of attribute replace.
Instance Method Summary collapse
- #after ⇒ Object
-
#initialize(*args) ⇒ Modify
constructor
A new instance of Modify.
Methods inherited from Operation
Constructor Details
#initialize(*args) ⇒ Modify
Returns a new instance of Modify.
38 39 40 |
# File 'lib/bently/recipe.rb', line 38 def initialize *args @file, @pattern, @replace = @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
37 38 39 |
# File 'lib/bently/recipe.rb', line 37 def args @args end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
37 38 39 |
# File 'lib/bently/recipe.rb', line 37 def file @file end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
37 38 39 |
# File 'lib/bently/recipe.rb', line 37 def pattern @pattern end |
#replace ⇒ Object (readonly)
Returns the value of attribute replace.
37 38 39 |
# File 'lib/bently/recipe.rb', line 37 def replace @replace end |
Instance Method Details
#after ⇒ Object
41 42 43 |
# File 'lib/bently/recipe.rb', line 41 def after [[1,@pattern.inspect], [2,@replace.inspect]] end |