Class: VectorEphemerisTable
- Inherits:
-
Object
- Object
- VectorEphemerisTable
- Includes:
- Enumerable
- Defined in:
- lib/tengai/vector_ephemeris_table.rb
Defined Under Namespace
Classes: Row
Class Method Summary collapse
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(rows) ⇒ VectorEphemerisTable
constructor
A new instance of VectorEphemerisTable.
Constructor Details
#initialize(rows) ⇒ VectorEphemerisTable
Returns a new instance of VectorEphemerisTable.
7 8 9 |
# File 'lib/tengai/vector_ephemeris_table.rb', line 7 def initialize(rows) @rows = rows end |
Class Method Details
.new_with_table(rows) ⇒ Object
11 12 13 |
# File 'lib/tengai/vector_ephemeris_table.rb', line 11 def self.new_with_table(rows) new(rows.map(&Row.method(:new))) end |
Instance Method Details
#each(&block) ⇒ Object
15 16 17 |
# File 'lib/tengai/vector_ephemeris_table.rb', line 15 def each(&block) @rows.each(&block) end |