Class: Hecks::Bluebook::World

Inherits:
Object
  • Object
show all
Includes:
Behaviour::World, IR
Defined in:
lib/hecks/bluebook/hexagon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Behaviour::World

#for_binding, #for_verb

Methods included from IR

extended, included

Constructor Details

#initialize(domain:, realm: nil, latest: nil, settings: {}) ⇒ World

Returns a new instance of World.



52
53
54
55
56
57
# File 'lib/hecks/bluebook/hexagon.rb', line 52

def initialize(domain:, realm: nil, latest: nil, settings: {})
  @domain   = domain.to_s
  @realm    = realm&.to_s
  @latest   = latest&.to_s
  @settings = settings
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



50
51
52
# File 'lib/hecks/bluebook/hexagon.rb', line 50

def domain
  @domain
end

#latestObject (readonly)

Returns the value of attribute latest.



50
51
52
# File 'lib/hecks/bluebook/hexagon.rb', line 50

def latest
  @latest
end

#realmObject (readonly)

Returns the value of attribute realm.



50
51
52
# File 'lib/hecks/bluebook/hexagon.rb', line 50

def realm
  @realm
end

#settingsObject (readonly)

Returns the value of attribute settings.



50
51
52
# File 'lib/hecks/bluebook/hexagon.rb', line 50

def settings
  @settings
end