Class: Mork::Raw::MetaAlias

Inherits:
Object
  • Object
show all
Defined in:
lib/mork/raw/meta_alias.rb

Overview

An alias indicating a Dictionary’s scope

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw:) ⇒ MetaAlias

Returns a new instance of MetaAlias.



10
11
12
# File 'lib/mork/raw/meta_alias.rb', line 10

def initialize(raw:)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



8
9
10
# File 'lib/mork/raw/meta_alias.rb', line 8

def raw
  @raw
end

Instance Method Details

#scopeObject



14
15
16
17
# File 'lib/mork/raw/meta_alias.rb', line 14

def scope
  _from, to = raw.split("=")
  to
end