OM19’s Time-An amateur in photography, administration, design, programming…
Variables and Assignments: Ruby Study Notes - Best Ruby Guide, Ruby Tutorial Annotated
Keywords can’t be used as variable names. def is a keyword
Fun with Strings: Ruby Study Notes - Best Ruby Guide, Ruby Tutorial Annotated
does not have anything in it at all; we call that an empty string.
puts ‘It\’s my Ruby’
n Ruby, strings are mutable. They can expand as needed, without using much time and memory. Ruby stores a string as a sequence of bytes.
The command output string is sent to the operating system as a command to be executed
Numbers in Ruby: Ruby Study Notes - Best Ruby Guide, Ruby Tutorial Annotated
Ruby integers are objects of class Fixnum or Bignum. The Fixnum and Bignum classes represent integers of differing sizes. Both classes descend from Integer (and therefore Numeric). The floating-point numbers are objects of class Float, corresponding to the native architecture’s double data type.
归类于: 未分类 — swanlin2007 @ 4:31 pm