Class: Dieses::Application::Paper::Dim

Inherits:
Struct
  • Object
show all
Defined in:
lib/dieses/application/paper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(width, height) ⇒ Object



9
10
11
# File 'lib/dieses/application/paper.rb', line 9

def self.call(width, height)
  new width: width, height: height
end

Instance Method Details

#longObject



17
18
19
# File 'lib/dieses/application/paper.rb', line 17

def long
  values.max
end

#shortObject



13
14
15
# File 'lib/dieses/application/paper.rb', line 13

def short
  values.min
end