Class: Icalendar2::Parameter::Base
- Inherits:
-
Object
- Object
- Icalendar2::Parameter::Base
- Defined in:
- lib/icalendar2/parameter/base.rb
Direct Known Subclasses
Altrep, Cn, Cutype, DelegatedFrom, DelegatedTo, Dir, Encoding, Fmttype
Class Attribute Summary collapse
-
.format_matcher ⇒ Object
readonly
Returns the value of attribute format_matcher.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ Base
constructor
A new instance of Base.
- #valid? ⇒ Boolean
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_matcher ⇒ Object (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
17 18 19 |
# File 'lib/icalendar2/parameter/base.rb', line 17 def valid? @valid end |