Sha256: 86008a7f98b70b5c49605507c65f29085eeb8ec9a1409e9b70d73579204a7609
Contents?: true
Size: 634 Bytes
Versions: 22
Compression:
Stored size: 634 Bytes
Contents
require File.join(File.dirname(__FILE__), 'options') module HammerCLI::Apipie class OptionDefinition < HammerCLI::Options::OptionDefinition attr_accessor :referenced_resource def initialize(switches, type, description, options = {}) if options.has_key? :referenced_resource self.referenced_resource = options.delete(:referenced_resource).to_s if options[:referenced_resource] end super # Apipie currently sends descriptions as escaped HTML once this is changed this should be removed. # See #15198 on Redmine. @description = CGI::unescapeHTML(description) end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
hammer_cli-0.8.0 | lib/hammer_cli/apipie/option_definition.rb |
hammer_cli-0.7.0 | lib/hammer_cli/apipie/option_definition.rb |