Skip to content

Commit

Permalink
Rename RObject to Object
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Jan 14, 2024
1 parent 50e3ea0 commit eda574c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion class.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (c *Class) LookupMethod(mid Symbol) *Method {

func (mrb *State) ClassOf(v Value) *Class {
switch v.(type) {
case *RObject:
case *Object:
return mrb.ObjectClass
case bool:
if v == false {
Expand Down
4 changes: 2 additions & 2 deletions mruby.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type State struct {
TrueClass *Class
KernelModule *Class

topSelf *RObject
topSelf *Object

symbolTable map[string]Symbol
symbolIndex int
Expand All @@ -43,7 +43,7 @@ func New() *State {
context: &context{
callinfo: stack.New[*callinfo](),
},
topSelf: &RObject{},
topSelf: &Object{},
symbolTable: make(map[string]Symbol),
symbolIndex: 0,
}
Expand Down
4 changes: 2 additions & 2 deletions object.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ type Basic interface {
Class() *Class
}

var _ Basic = &RObject{}
var _ Basic = &Object{}

type RObject struct {
type Object struct {
object
}

Expand Down

0 comments on commit eda574c

Please sign in to comment.