Class: Fbtxt::Parser::Card

Inherits:
Struct
  • Object
show all
Defined in:
lib/fbtxt/parser/parse_tree-props.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#minuteObject

Returns the value of attribute minute

Returns:

  • (Object)

    the current value of minute



222
223
224
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 222

def minute
  @minute
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



222
223
224
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 222

def name
  @name
end

Instance Method Details

#as_jsonObject



223
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 223

def as_json(*)  to_s; end

#pretty_print(q) ⇒ Object



232
233
234
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 232

def pretty_print( q )
  q.text( to_s )
end

#to_sObject



225
226
227
228
229
230
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 225

def to_s
  buf = String.new
  buf << "#{name}"
  buf << " #{minute.to_s}"   if minute
  buf
end