Class: Mahoujin::Graphics::Styles::Json

Inherits:
Object
  • Object
show all
Defined in:
lib/mahoujin/graphics/styles/json.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJson

Returns a new instance of Json


7
8
9
10
# File 'lib/mahoujin/graphics/styles/json.rb', line 7

def initialize
  initialize_basic
  initialize_atoms
end

Instance Attribute Details

#basicObject (readonly)

Returns the value of attribute basic


5
6
7
# File 'lib/mahoujin/graphics/styles/json.rb', line 5

def basic
  @basic
end

Instance Method Details

#query(atom, attribute) ⇒ Object


12
13
14
# File 'lib/mahoujin/graphics/styles/json.rb', line 12

def query(atom, attribute)
  @atoms.fetch(atom).fetch(attribute)
end