Class: StackDeck::Context::File
- Inherits:
-
StackDeck::Context
- Object
- StackDeck::Context
- StackDeck::Context::File
- Defined in:
- lib/stackdeck/context.rb
Constant Summary
Constants inherited from StackDeck::Context
Instance Attribute Summary
Attributes inherited from StackDeck::Context
#after, #before, #before_lineno, #line
Instance Method Summary collapse
-
#initialize(filename, lineno) ⇒ File
constructor
A new instance of File.
Methods inherited from StackDeck::Context
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 |