Class: TRMNLP::Screen

Inherits:
Object
  • Object
show all
Defined in:
lib/trmnlp/screen.rb

Constant Summary collapse

FULL =
new(name: 'full',             mashup_classes: nil)
HALF_HORIZONTAL =
new(name: 'half_horizontal',  mashup_classes: 'mashup mashup--1Tx1B')
HALF_VERTICAL =
new(name: 'half_vertical',    mashup_classes: 'mashup mashup--1Lx1R')
QUADRANT =
new(name: 'quadrant',         mashup_classes: 'mashup mashup--2x2')
ALL =
[FULL, HALF_HORIZONTAL, HALF_VERTICAL, QUADRANT].freeze

Class Method Summary collapse

Class Method Details

.allObject



12
# File 'lib/trmnlp/screen.rb', line 12

def self.all = ALL

.find(name) ⇒ Object



13
# File 'lib/trmnlp/screen.rb', line 13

def self.find(name) = ALL.find { it.name == name }

.namesObject



14
# File 'lib/trmnlp/screen.rb', line 14

def self.names = ALL.map(&:name)