module Rogue
Constants
- VERSION
Public Instance Methods
obj(properties = Hash.new)
click to toggle source
A special auxillary method that lets you create instances of CustomStruct with properties directly with a one liner eg. myobj = obj(id: 1, title: 'First Screen', click_action: 'click_to_web') with this you can do: myobj.title and get 'First Screen'
# File lib/rogue.rb, line 37 def obj(properties = Hash.new) RogueObject.new.with_properties(properties) end