Class: ConfigBlockHandler
- Inherits:
-
Object
- Object
- ConfigBlockHandler
- Defined in:
- lib/local_dsl.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
47 48 49 |
# File 'lib/local_dsl.rb', line 47 def path @path end |
Instance Method Details
#add_block(text) ⇒ Object
60 61 62 63 |
# File 'lib/local_dsl.rb', line 60 def add_block(text) Local.type_check(nil, text, String) TaskResult.new end |
#add_line(s) ⇒ Object
55 56 57 58 |
# File 'lib/local_dsl.rb', line 55 def add_line(s) Local.type_check(nil, s, String) TaskResult.new end |
#replace_or_add_line(a, b) ⇒ Object
49 50 51 52 53 |
# File 'lib/local_dsl.rb', line 49 def replace_or_add_line(a, b) Local.type_check(1, a, String, Regexp) Local.type_check(2, b, String) TaskResult.new end |