Class: Pattern
Direct Known Subclasses
BlankLinePattern, FunctionDeclarationPattern, FunctionDefinitionPattern, IncludePattern, StructPattern
Instance Attribute Summary collapse
-
#search_files ⇒ Object
readonly
Returns the value of attribute search_files.
Instance Method Summary collapse
- #dump(captured, out) ⇒ Object
-
#initialize(*search_files) ⇒ Pattern
constructor
A new instance of Pattern.
- #matches_end(str) ⇒ Object
- #matches_start(str) ⇒ Object
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_files ⇒ Object (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 |