Class: KDL::Value::Custom
- Inherits:
-
KDL::Value
- Object
- KDL::Value
- KDL::Value::Custom
- Defined in:
- lib/kdl/value.rb
Direct Known Subclasses
Types::Base64, Types::Country, Types::CountrySubdivision, Types::Currency, Types::Date, Types::DateTime, Types::Decimal, Types::Duration, Types::Email, Types::Hostname, Types::IP, Types::IRLReference, Types::Regex, Types::Time, Types::URLReference, Types::URLTemplate, Types::UUID
Constant Summary
Constants inherited from KDL::Value
Instance Attribute Summary collapse
-
#oriinal_value ⇒ Object
readonly
Returns the value of attribute oriinal_value.
Attributes inherited from KDL::Value
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from KDL::Value
#==, #as_type, from, #initialize, #inspect, #method_missing, #respond_to_missing?, #stringify_value, #to_s
Constructor Details
This class inherits a constructor from KDL::Value
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class KDL::Value
Instance Attribute Details
#oriinal_value ⇒ Object (readonly)
Returns the value of attribute oriinal_value.
144 145 146 |
# File 'lib/kdl/value.rb', line 144 def oriinal_value @oriinal_value end |
Class Method Details
.call(value, type) ⇒ Object
146 147 148 |
# File 'lib/kdl/value.rb', line 146 def self.call(value, type) new(value, type:) end |
Instance Method Details
#to_v1 ⇒ Object
154 155 156 |
# File 'lib/kdl/value.rb', line 154 def to_v1 self end |
#to_v2 ⇒ Object
158 159 160 |
# File 'lib/kdl/value.rb', line 158 def to_v2 self end |
#version ⇒ Object
150 151 152 |
# File 'lib/kdl/value.rb', line 150 def version nil end |