Class: StackDeck::Context::File

Inherits:
StackDeck::Context show all
Defined in:
lib/stackdeck/context.rb

Constant Summary

Constants inherited from StackDeck::Context

CONTEXT

Instance Attribute Summary

Attributes inherited from StackDeck::Context

#after, #before, #before_lineno, #line

Instance Method Summary collapse

Methods inherited from StackDeck::Context

#context_ranges

Constructor Details

#initialize(filename, lineno) ⇒ File

Returns a new instance of File.



26
27
28
# File 'lib/stackdeck/context.rb', line 26

def initialize(filename, lineno)
  super ::File.readlines(filename).map {|l| l.chomp }, lineno
end