Class: RubyJard::Templates::ScreenTemplate
- Inherits:
-
Object
- Object
- RubyJard::Templates::ScreenTemplate
- Defined in:
- lib/ruby_jard/templates/screen_template.rb
Overview
Template of a screen. A screen doesn’t have children. Each screen includes screen name, sizes androw template for rendering.
Instance Attribute Summary collapse
-
#adjust_mode ⇒ Object
readonly
Returns the value of attribute adjust_mode.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#height_ratio ⇒ Object
readonly
Returns the value of attribute height_ratio.
-
#min_height ⇒ Object
readonly
Returns the value of attribute min_height.
-
#min_width ⇒ Object
readonly
Returns the value of attribute min_width.
-
#row_template ⇒ Object
readonly
Returns the value of attribute row_template.
-
#screen ⇒ Object
readonly
Returns the value of attribute screen.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
-
#width_ratio ⇒ Object
readonly
Returns the value of attribute width_ratio.
Instance Method Summary collapse
-
#initialize(screen: nil, row_template: nil, height_ratio: nil, width_ratio: nil, min_width: nil, min_height: nil, height: nil, width: nil, adjust_mode: nil) ⇒ ScreenTemplate
constructor
A new instance of ScreenTemplate.
Constructor Details
#initialize(screen: nil, row_template: nil, height_ratio: nil, width_ratio: nil, min_width: nil, min_height: nil, height: nil, width: nil, adjust_mode: nil) ⇒ ScreenTemplate
Returns a new instance of ScreenTemplate.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 14 def initialize( screen: nil, row_template: nil, height_ratio: nil, width_ratio: nil, min_width: nil, min_height: nil, height: nil, width: nil, adjust_mode: nil ) @screen = screen @row_template = row_template @height_ratio = height_ratio @width_ratio = width_ratio @min_width = min_width @min_height = min_height @height = height @width = width @adjust_mode = adjust_mode end |
Instance Attribute Details
#adjust_mode ⇒ Object (readonly)
Returns the value of attribute adjust_mode.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def adjust_mode @adjust_mode end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def height @height end |
#height_ratio ⇒ Object (readonly)
Returns the value of attribute height_ratio.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def height_ratio @height_ratio end |
#min_height ⇒ Object (readonly)
Returns the value of attribute min_height.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def min_height @min_height end |
#min_width ⇒ Object (readonly)
Returns the value of attribute min_width.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def min_width @min_width end |
#row_template ⇒ Object (readonly)
Returns the value of attribute row_template.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def row_template @row_template end |
#screen ⇒ Object (readonly)
Returns the value of attribute screen.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def screen @screen end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def width @width end |
#width_ratio ⇒ Object (readonly)
Returns the value of attribute width_ratio.
9 10 11 |
# File 'lib/ruby_jard/templates/screen_template.rb', line 9 def width_ratio @width_ratio end |