Class: RubyModKit::Memo::IvarMemo
- Inherits:
-
Object
- Object
- RubyModKit::Memo::IvarMemo
- Defined in:
- lib/ruby_mod_kit/memo/ivar_memo.rb
Overview
The memo for parameter type
Instance Attribute Summary collapse
-
#attr_kind ⇒ Object
: Symbol | nil.
-
#indent ⇒ Object
: String.
-
#offset ⇒ Object
: Integer | nil.
-
#separator ⇒ Object
: String.
- #type ⇒ Object
-
#visibility ⇒ Object
: Symbol | nil.
Instance Method Summary collapse
- #initialize(name) ⇒ void constructor
- #succ(offset_diff) ⇒ void
Constructor Details
#initialize(name) ⇒ void
28 29 30 31 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 28 def initialize(name) @name = name @indent = "" end |
Instance Attribute Details
#attr_kind ⇒ Object
: Symbol | nil
18 19 20 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 18 def attr_kind @attr_kind end |
#indent ⇒ Object
: String
20 21 22 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 20 def indent @indent end |
#offset ⇒ Object
: Integer | nil
19 20 21 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 19 def offset @offset end |
#separator ⇒ Object
: String
22 23 24 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 22 def separator @separator end |
#type ⇒ Object
17 18 19 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 17 def type @type end |
#visibility ⇒ Object
: Symbol | nil
21 22 23 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 21 def visibility @visibility end |
Instance Method Details
#succ(offset_diff) ⇒ void
This method returns an undefined value.
60 61 62 63 64 65 |
# File 'lib/ruby_mod_kit/memo/ivar_memo.rb', line 60 def succ(offset_diff) offset = @offset return unless offset @offset = offset_diff[offset] end |