Class: Scenic::MySQLAdapter::Views
- Inherits:
-
Object
- Object
- Scenic::MySQLAdapter::Views
- Includes:
- Enumerable, TSort
- Defined in:
- lib/scenic/mysql_adapter/views.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object (also: #tsort_each_node)
-
#initialize(views, graph) ⇒ Views
constructor
A new instance of Views.
Constructor Details
#initialize(views, graph) ⇒ Views
Returns a new instance of Views.
9 10 11 12 |
# File 'lib/scenic/mysql_adapter/views.rb', line 9 def initialize(views, graph) @views = views @graph = graph end |
Instance Method Details
#each(&block) ⇒ Object Also known as: tsort_each_node
14 15 16 |
# File 'lib/scenic/mysql_adapter/views.rb', line 14 def each(&block) @views.each(&block) end |