-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Cannot translate rbi to rbs if there is a keyword such as public
before def
.
#: () -> String
public def bar = 'bar'
To Reproduce
Spoom version: '1.7.4'
example.rb: before
class Example
#: () -> String
public def bar = 'bar'
end
Steps to reproduce the behavior:
bundle exec spoom srb sigs translate --from rbs --to rbi example.rb
- Nothing changes.
Expected behavior
example.rb: after(expected)
class Example
sig { returns(String) }
public def bar = 'bar'
end
Additional Information
We use a gem called alt_memery for memoizing.
When using this one, we would be happy if we could support the same, since the keyword memoize
comes before def
as follows.
#: () -> String
memoize def foo
'foo'
end
amomchilov
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working