class RSpecApib::Element::String

Represents a string in api-elements (api-elements.readthedocs.io/en/latest/)

Public Class Methods

from_hash(hash, index:, parent:) click to toggle source

rubocop:disable Lint/UnusedMethodArgument

# File lib/rspec_apib/elements/string.rb, line 7
def self.from_hash(hash, index:, parent:)
  new(hash["content"] || "")
end