Class: AsposePdfCloud::LettersPositioningMethods
- Inherits:
-
Object
- Object
- AsposePdfCloud::LettersPositioningMethods
- Defined in:
- lib/aspose_pdf_cloud/models/letters_positioning_methods.rb
Constant Summary collapse
- USE_EM_UNITS_AND_COMPENSATION_OF_ROUNDING_ERRORS_IN_CSS =
"UseEmUnitsAndCompensationOfRoundingErrorsInCss".freeze
- USE_PIXEL_UNITS_IN_CSS_LETTER_SPACING_FOR_IE =
"UsePixelUnitsInCssLetterSpacingForIE".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 37 38 39 40 41 |
# File 'lib/aspose_pdf_cloud/models/letters_positioning_methods.rb', line 34 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = LettersPositioningMethods.constants.select{|c| c.to_s == value} constantValues = LettersPositioningMethods.constants.select{ |const_name| LettersPositioningMethods.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #LettersPositioningMethods" if constantValues.empty? value end |