Class: Browsable::Sources::Importmap::Pin

Inherits:
Data
  • Object
show all
Defined in:
lib/browsable/sources/importmap.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'lib/browsable/sources/importmap.rb', line 23

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



23
24
25
# File 'lib/browsable/sources/importmap.rb', line 23

def url
  @url
end

Instance Method Details

#remote?Boolean

Returns:

  • (Boolean)


24
# File 'lib/browsable/sources/importmap.rb', line 24

def remote? = url&.start_with?("http://", "https://")