Class: Dictionary
- Inherits:
-
Object
- Object
- Dictionary
- Defined in:
- lib/dictionary.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#xpath ⇒ Object
readonly
Returns the value of attribute xpath.
Instance Method Summary collapse
-
#initialize(name, url, xpath, color = nil) ⇒ Dictionary
constructor
A new instance of Dictionary.
Constructor Details
#initialize(name, url, xpath, color = nil) ⇒ Dictionary
29 30 31 32 33 34 |
# File 'lib/dictionary.rb', line 29 def initialize(name, url, xpath, color = nil) @name = name @url = url @xpath = xpath @color = color end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
28 29 30 |
# File 'lib/dictionary.rb', line 28 def color @color end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
27 28 29 |
# File 'lib/dictionary.rb', line 27 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
27 28 29 |
# File 'lib/dictionary.rb', line 27 def url @url end |
#xpath ⇒ Object (readonly)
Returns the value of attribute xpath.
27 28 29 |
# File 'lib/dictionary.rb', line 27 def xpath @xpath end |