Class: Icalendar2::Parameter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/icalendar2/parameter/base.rb

Direct Known Subclasses

Altrep, Cn, Cutype, DelegatedFrom, DelegatedTo, Dir, Encoding, Fmttype

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
# File 'lib/icalendar2/parameter/base.rb', line 11

def initialize(value)
  @valid = true
  @value = value
  validate
end

Class Attribute Details

.format_matcherObject (readonly)

Returns the value of attribute format_matcher.



5
6
7
# File 'lib/icalendar2/parameter/base.rb', line 5

def format_matcher
  @format_matcher
end

Class Method Details

.format(matcher) ⇒ Object



7
8
9
# File 'lib/icalendar2/parameter/base.rb', line 7

def self.format(matcher)
  @format_matcher = matcher
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/icalendar2/parameter/base.rb', line 17

def valid?
  @valid
end