Class: Smartdict::Info
- Inherits:
-
Struct
- Object
- Struct
- Smartdict::Info
- Includes:
- Singleton
- Defined in:
- lib/smartdict/info.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#email ⇒ Object
Returns the value of attribute email.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize ⇒ Info
Returns a new instance of Info.
7 8 9 10 11 12 |
# File 'lib/smartdict/info.rb', line 7 def initialize self.version = Smartdict::VERSION self. = "Sergey Potapov" self.email = "[email protected]" self.url = "http://smartdict.net" end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
4 5 6 |
# File 'lib/smartdict/info.rb', line 4 def @author end |
#email ⇒ Object
Returns the value of attribute email
4 5 6 |
# File 'lib/smartdict/info.rb', line 4 def email @email end |
#url ⇒ Object
Returns the value of attribute url
4 5 6 |
# File 'lib/smartdict/info.rb', line 4 def url @url end |
#version ⇒ Object
Returns the value of attribute version
4 5 6 |
# File 'lib/smartdict/info.rb', line 4 def version @version end |