Class: WhatTheGem::Gem::Bundled::NotBundled

Inherits:
Struct
  • Object
show all
Defined in:
lib/whatthegem/gem/bundled.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/whatthegem/gem/bundled.rb', line 16

def name
  @name
end

Instance Method Details

#present?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/whatthegem/gem/bundled.rb', line 21

def present?
  false
end

#to_hObject



17
18
19
# File 'lib/whatthegem/gem/bundled.rb', line 17

def to_h
  {type: 'notbundled', name: name}
end