Class: Gonzui::License
- Inherits:
-
Object
- Object
- Gonzui::License
- Defined in:
- lib/gonzui/license.rb
Instance Attribute Summary collapse
-
#abbrev ⇒ Object
readonly
Returns the value of attribute abbrev.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#regexp ⇒ Object
readonly
Returns the value of attribute regexp.
Instance Method Summary collapse
- #allow_later ⇒ Object
- #allow_later? ⇒ Boolean
-
#initialize(abbrev, name, regexp) ⇒ License
constructor
A new instance of License.
Constructor Details
#initialize(abbrev, name, regexp) ⇒ License
Returns a new instance of License.
16 17 18 19 20 21 |
# File 'lib/gonzui/license.rb', line 16 def initialize(abbrev, name, regexp) @abbrev = abbrev @name = name @regexp = regexp @allow_later_p = false end |
Instance Attribute Details
#abbrev ⇒ Object (readonly)
Returns the value of attribute abbrev.
22 23 24 |
# File 'lib/gonzui/license.rb', line 22 def abbrev @abbrev end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/gonzui/license.rb', line 23 def name @name end |
#regexp ⇒ Object (readonly)
Returns the value of attribute regexp.
24 25 26 |
# File 'lib/gonzui/license.rb', line 24 def regexp @regexp end |
Instance Method Details
#allow_later ⇒ Object
26 27 28 |
# File 'lib/gonzui/license.rb', line 26 def allow_later @allow_later_p = true end |
#allow_later? ⇒ Boolean
30 31 32 |
# File 'lib/gonzui/license.rb', line 30 def allow_later? @allow_later_p end |