Class: Pattern

Inherits:
Object show all
Defined in:
ext/generate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*search_files) ⇒ Pattern

Returns a new instance of Pattern.



7
8
9
# File 'ext/generate.rb', line 7

def initialize(*search_files)
  @search_files = search_files
end

Instance Attribute Details

#search_filesObject (readonly)

Returns the value of attribute search_files.



5
6
7
# File 'ext/generate.rb', line 5

def search_files
  @search_files
end

Instance Method Details

#dump(captured, out) ⇒ Object



19
20
21
22
23
24
# File 'ext/generate.rb', line 19

def dump(captured, out)
  captured.each do |line|
    out.puts line
  end
  out.puts ''
end

#matches_end(str) ⇒ Object



15
16
17
# File 'ext/generate.rb', line 15

def matches_end(str)
  return true
end

#matches_start(str) ⇒ Object



11
12
13
# File 'ext/generate.rb', line 11

def matches_start(str)
  return false
end