Class: Newjs::Rubyforge
- Inherits:
-
Object
- Object
- Newjs::Rubyforge
- Defined in:
- lib/newjs/rubyforge.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
Instance Method Summary collapse
-
#initialize ⇒ Rubyforge
constructor
A new instance of Rubyforge.
- #rubyforge ⇒ Object
Constructor Details
#initialize ⇒ Rubyforge
Returns a new instance of Rubyforge.
8 9 10 11 |
# File 'lib/newjs/rubyforge.rb', line 8 def initialize @full_name = rubyforge.userconfig['full_name'] || ENV['NAME'] || 'FIXME full name' @email = rubyforge.userconfig['email'] || ENV['EMAIL'] || 'FIXME email' end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/newjs/rubyforge.rb', line 6 def email @email end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
6 7 8 |
# File 'lib/newjs/rubyforge.rb', line 6 def full_name @full_name end |
Instance Method Details
#rubyforge ⇒ Object
13 14 15 |
# File 'lib/newjs/rubyforge.rb', line 13 def rubyforge @rubyforge ||= RubyForge.new(::RubyForge::CONFIG_F) end |