Class: FastExt::View
Instance Attribute Summary collapse
-
#copyright ⇒ Object
Returns the value of attribute copyright.
-
#project ⇒ Object
Returns the value of attribute project.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #config(&block) ⇒ Object
- #find_window(name) ⇒ Object
-
#initialize ⇒ View
constructor
A new instance of View.
- #tab(name, tab) ⇒ Object
- #win(name, opts = {}, &block) ⇒ Object
Constructor Details
#initialize ⇒ View
Returns a new instance of View.
8 9 10 11 12 |
# File 'lib/fast_ext/view.rb', line 8 def initialize @project = 'FastExt Rapid Development Framework' @version = "version #{FastExt::VERSION} built on ExtJS 4.2.1" @copyright = 'Copyright 2013-2014 [email protected].' end |
Instance Attribute Details
#copyright ⇒ Object
Returns the value of attribute copyright.
6 7 8 |
# File 'lib/fast_ext/view.rb', line 6 def copyright @copyright end |
#project ⇒ Object
Returns the value of attribute project.
6 7 8 |
# File 'lib/fast_ext/view.rb', line 6 def project @project end |
#version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/fast_ext/view.rb', line 6 def version @version end |
Instance Method Details
#config(&block) ⇒ Object
23 24 25 |
# File 'lib/fast_ext/view.rb', line 23 def config(&block) block.call(self) if block_given? end |
#find_window(name) ⇒ Object
27 28 29 |
# File 'lib/fast_ext/view.rb', line 27 def find_window(name) FastExt::Window.find(name) || {} end |