Class: Grumblr::Core
- Inherits:
-
Object
- Object
- Grumblr::Core
- Defined in:
- lib/grumblr/core.rb
Instance Attribute Summary collapse
-
#blog ⇒ Object
Returns the value of attribute blog.
Instance Method Summary collapse
-
#initialize ⇒ Core
constructor
A new instance of Core.
- #main ⇒ Object
- #quit ⇒ Object
Constructor Details
#initialize ⇒ Core
Returns a new instance of Core.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/grumblr/core.rb', line 13 def initialize $app = self $cfg = Grumblr::Config.new $gui = Grumblr::UI.new $gui.show_all $api = Ppds::Tumblr.new if $api.authenticate($cfg.get(:email), $cfg.get(:password)) $gui.add Grumblr::Dashboard.new else $gui.add Grumblr::SettingsFrame.new end end |
Instance Attribute Details
#blog ⇒ Object
Returns the value of attribute blog.
11 12 13 |
# File 'lib/grumblr/core.rb', line 11 def blog @blog end |