Class: Gelauto::Rbi

Inherits:
Object
  • Object
show all
Defined in:
lib/gelauto/rbi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_index, paths = Gelauto.paths) ⇒ Rbi

Returns a new instance of Rbi.



5
6
7
8
# File 'lib/gelauto/rbi.rb', line 5

def initialize(method_index, paths = Gelauto.paths)
  @method_index = method_index
  @paths = paths
end

Instance Attribute Details

#method_indexObject (readonly)

Returns the value of attribute method_index.



3
4
5
# File 'lib/gelauto/rbi.rb', line 3

def method_index
  @method_index
end

#pathsObject (readonly)

Returns the value of attribute paths.



3
4
5
# File 'lib/gelauto/rbi.rb', line 3

def paths
  @paths
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/gelauto/rbi.rb', line 10

def to_s
  StringIO.new.tap { |io| compose(method_groups, io) }.string
end