Class: Gemrat::Gem
- Inherits:
-
Struct
- Object
- Struct
- Gemrat::Gem
- Defined in:
- lib/gemrat.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#valid ⇒ Object
(also: #valid?)
Returns the value of attribute valid.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Gem
constructor
A new instance of Gem.
- #invalid! ⇒ Object
Constructor Details
#initialize(*args) ⇒ Gem
Returns a new instance of Gem.
12 13 14 15 |
# File 'lib/gemrat.rb', line 12 def initialize(*args) super self.valid = true end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/gemrat.rb', line 9 def name @name end |
#valid ⇒ Object Also known as: valid?
Returns the value of attribute valid
9 10 11 |
# File 'lib/gemrat.rb', line 9 def valid @valid end |
Instance Method Details
#invalid! ⇒ Object
17 18 19 |
# File 'lib/gemrat.rb', line 17 def invalid! self.valid = false end |