Module: PSD::Slices

Included in:
PSD
Defined in:
lib/psd/slices.rb

Instance Method Summary collapse

Instance Method Details

#slice_by_id(id) ⇒ Object



9
10
11
# File 'lib/psd/slices.rb', line 9

def slice_by_id(id)
  slices.select { |s| s.id == id }.first
end

#slices_by_name(name) ⇒ Object



5
6
7
# File 'lib/psd/slices.rb', line 5

def slices_by_name(name)
  slices.select { |s| s.name == name }
end