Class: Extralite::Transform::DSLContext

Inherits:
Object
  • Object
show all
Defined in:
lib/extralite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ DSLContext

Returns a new instance of DSLContext.



372
373
374
# File 'lib/extralite.rb', line 372

def initialize(hash = {})
  @hash = hash
end

Instance Attribute Details

#hashObject (readonly)

Returns the value of attribute hash.



370
371
372
# File 'lib/extralite.rb', line 370

def hash
  @hash
end

Instance Method Details

#autoObject



376
# File 'lib/extralite.rb', line 376

def auto      = mutate(type: nil)

#boolObject



380
# File 'lib/extralite.rb', line 380

def bool      = mutate(type: :bool)

#floatObject



378
# File 'lib/extralite.rb', line 378

def float     = mutate(type: :float)

#identityObject



382
# File 'lib/extralite.rb', line 382

def identity  = mutate(identity: true)

#integerObject



377
# File 'lib/extralite.rb', line 377

def integer   = mutate(type: :integer)

#jsonObject



381
# File 'lib/extralite.rb', line 381

def json      = mutate(type: :json)

#textObject



379
# File 'lib/extralite.rb', line 379

def text      = mutate(type: :text)