Class: Gonzui::License

Inherits:
Object
  • Object
show all
Defined in:
lib/gonzui/license.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#abbrevObject (readonly)

Returns the value of attribute abbrev.



22
23
24
# File 'lib/gonzui/license.rb', line 22

def abbrev
  @abbrev
end

#nameObject (readonly)

Returns the value of attribute name.



23
24
25
# File 'lib/gonzui/license.rb', line 23

def name
  @name
end

#regexpObject (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_laterObject



26
27
28
# File 'lib/gonzui/license.rb', line 26

def allow_later
  @allow_later_p = true
end

#allow_later?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/gonzui/license.rb', line 30

def allow_later?
  @allow_later_p
end