class Bootinq::Component

Attributes

gem_name[R]
group[R]
id2name[R]
intern[R]
name[R]
to_s[R]
to_sym[R]

Public Class Methods

new(intern) click to toggle source
# File lib/bootinq/component.rb, line 12
def initialize(intern)
  @intern  = intern.to_sym
  @id2name = intern.to_s.freeze
  @group   = :"#@id2name\_boot"
  freeze
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/bootinq/component.rb, line 34
def == other
  case other
  when String then other == @id2name
  when Symbol then other == @intern
              else super
  end
end
===(other) click to toggle source
Calls superclass method
# File lib/bootinq/component.rb, line 42
def ===(other)
  case other
  when String then other === @id2name
  when Symbol then other === @intern
              else super
  end
end
casecmp(other) click to toggle source
# File lib/bootinq/component.rb, line 50
def casecmp(other)
  case other
  when String then @id2name.casecmp(other)
  when Symbol then @intern.casecmp(other)
  when self.class then casecmp(other.to_s)
  end
end
casecmp?(other) click to toggle source
# File lib/bootinq/component.rb, line 58
def casecmp?(other)
  case other
  when String then @id2name.casecmp?(other)
  when Symbol then @intern.casecmp?(other)
  when self.class then casecmp?(other.to_s)
  end
end
engine() click to toggle source
# File lib/bootinq/component.rb, line 27
def engine
end
kind_of?(klass) click to toggle source
Calls superclass method
# File lib/bootinq/component.rb, line 30
def kind_of?(klass)
  super || @intern.kind_of?(klass)
end
module_name() click to toggle source
# File lib/bootinq/component.rb, line 23
def module_name
  @id2name.camelcase.to_sym
end
mountable?() click to toggle source
# File lib/bootinq/component.rb, line 19
def mountable?
  false
end