Class: Referee::ResourceGroup
- Inherits:
-
Object
- Object
- Referee::ResourceGroup
- Defined in:
- lib/referee/resourcegroup.rb
Overview
Representation of all of the resources contained in a given storyboard.
Instance Attribute Summary collapse
-
#collection_cells ⇒ Object
Returns the value of attribute collection_cells.
-
#config ⇒ Object
Returns the value of attribute config.
-
#segues ⇒ Object
Returns the value of attribute segues.
-
#storyboard ⇒ Object
Returns the value of attribute storyboard.
-
#table_cells ⇒ Object
Returns the value of attribute table_cells.
-
#view_controllers ⇒ Object
Returns the value of attribute view_controllers.
Instance Method Summary collapse
-
#initialize(storyboard, table_cells, collection_cells, view_controllers, segues, config) ⇒ ResourceGroup
constructor
A new instance of ResourceGroup.
- #storyboard_name ⇒ Object
Constructor Details
#initialize(storyboard, table_cells, collection_cells, view_controllers, segues, config) ⇒ ResourceGroup
Returns a new instance of ResourceGroup.
6 7 8 9 10 11 12 13 |
# File 'lib/referee/resourcegroup.rb', line 6 def initialize(storyboard, table_cells, collection_cells, view_controllers, segues, config) @storyboard = storyboard @table_cells = table_cells @collection_cells = collection_cells @view_controllers = view_controllers @segues = segues @config = config end |
Instance Attribute Details
#collection_cells ⇒ Object
Returns the value of attribute collection_cells.
4 5 6 |
# File 'lib/referee/resourcegroup.rb', line 4 def collection_cells @collection_cells end |
#config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/referee/resourcegroup.rb', line 4 def config @config end |
#segues ⇒ Object
Returns the value of attribute segues.
4 5 6 |
# File 'lib/referee/resourcegroup.rb', line 4 def segues @segues end |
#storyboard ⇒ Object
Returns the value of attribute storyboard.
4 5 6 |
# File 'lib/referee/resourcegroup.rb', line 4 def storyboard @storyboard end |
#table_cells ⇒ Object
Returns the value of attribute table_cells.
4 5 6 |
# File 'lib/referee/resourcegroup.rb', line 4 def table_cells @table_cells end |
#view_controllers ⇒ Object
Returns the value of attribute view_controllers.
4 5 6 |
# File 'lib/referee/resourcegroup.rb', line 4 def view_controllers @view_controllers end |
Instance Method Details
#storyboard_name ⇒ Object
15 16 17 18 |
# File 'lib/referee/resourcegroup.rb', line 15 def storyboard_name basename = File.basename(@storyboard.real_path) basename.gsub(/\.storyboard/, '') end |