Class: ConfigBlockHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/local_dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path.



48
49
50
# File 'lib/local_dsl.rb', line 48

def path
  @path
end

Instance Method Details

#add_block(text) ⇒ Object



61
62
63
64
# File 'lib/local_dsl.rb', line 61

def add_block(text)
  Local.type_check(nil, text, String)
  TaskResult.new
end

#add_line(s) ⇒ Object



56
57
58
59
# File 'lib/local_dsl.rb', line 56

def add_line(s)
  Local.type_check(nil, s, String)
  TaskResult.new
end

#replace_or_add_line(a, b) ⇒ Object



50
51
52
53
54
# File 'lib/local_dsl.rb', line 50

def replace_or_add_line(a, b)
  Local.type_check(1, a, String, Regexp)
  Local.type_check(2, b, String)
  TaskResult.new
end