Class: Referee::ResourceGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/referee/resourcegroup.rb

Overview

Representation of all of the resources contained in a given storyboard.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_cellsObject

Returns the value of attribute collection_cells.



4
5
6
# File 'lib/referee/resourcegroup.rb', line 4

def collection_cells
  @collection_cells
end

#configObject

Returns the value of attribute config.



4
5
6
# File 'lib/referee/resourcegroup.rb', line 4

def config
  @config
end

#seguesObject

Returns the value of attribute segues.



4
5
6
# File 'lib/referee/resourcegroup.rb', line 4

def segues
  @segues
end

#storyboardObject

Returns the value of attribute storyboard.



4
5
6
# File 'lib/referee/resourcegroup.rb', line 4

def storyboard
  @storyboard
end

#table_cellsObject

Returns the value of attribute table_cells.



4
5
6
# File 'lib/referee/resourcegroup.rb', line 4

def table_cells
  @table_cells
end

#view_controllersObject

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_nameObject



15
16
17
18
# File 'lib/referee/resourcegroup.rb', line 15

def storyboard_name
  basename = File.basename(@storyboard.real_path)
  basename.gsub(/\.storyboard/, '')
end