class Alpinist::Descriptor

Attributes

doc[R]
ext[R]
href[R]
id[R]
name[R]
reference[RW]
rt[R]
type[R]

Public Class Methods

new(id: nil, name: nil, type: nil, rt: nil, href: nil, doc: nil, ext: nil, reference: nil) click to toggle source
# File lib/alpinist/descriptor.rb, line 6
def initialize(id: nil, name: nil, type: nil, rt: nil, href: nil, doc: nil, ext: nil, reference: nil)
  @id = id
  @name = name
  @type = type
  @rt = rt
  @href = href
  @doc = doc
  @ext = ext
  @reference = reference
end

Public Instance Methods

inspect() click to toggle source
# File lib/alpinist/descriptor.rb, line 17
def inspect
  display_variable_name = %w(@id @name @type @rt @href @doc @ext)
  variables_inspect = display_variable_name.map{ |n| "#{n}=#{instance_variable_get(n).inspect}" }.join(' ')
  "#<#{self.class}:#{__id__} #{variables_inspect}>"
end