Class: ReVIEW::Preprocessor::Strip
Instance Method Summary collapse
- #gets ⇒ Object
-
#initialize(f) ⇒ Strip
constructor
A new instance of Strip.
- #lineno ⇒ Object
- #path ⇒ Object
Constructor Details
#initialize(f) ⇒ Strip
Returns a new instance of Strip.
47 48 49 |
# File 'lib/review/preprocessor.rb', line 47 def initialize(f) @f = f end |
Instance Method Details
#gets ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/review/preprocessor.rb', line 59 def gets @f.each_line do |line| return "\#@\#\n" if /\A\#@/ =~ line return line end nil end |
#lineno ⇒ Object
55 56 57 |
# File 'lib/review/preprocessor.rb', line 55 def lineno @f.lineno end |
#path ⇒ Object
51 52 53 |
# File 'lib/review/preprocessor.rb', line 51 def path @f.path end |